diff options
author | khali <khali> | 2008-10-30 07:50:22 +0000 |
---|---|---|
committer | khali <khali> | 2008-10-30 07:50:22 +0000 |
commit | df134bf29e71d0b5b5838d60a90b880c6db7901c (patch) | |
tree | 80ffde9804e27938a84c73c4fd722451a423283e /dmiopt.c | |
parent | 5a6eea84cb07a62a00c2e10077569071a5e3a7a5 (diff) | |
download | dmidecode-df134bf29e71d0b5b5838d60a90b880c6db7901c.tar.gz |
Option --dump is only a modifier as --quiet is, so it's not actually
mutually exclusive with the output format options.
Diffstat (limited to 'dmiopt.c')
-rw-r--r-- | dmiopt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -282,12 +282,12 @@ int parse_command_line(int argc, char * const argv[]) /* Check for mutually exclusive output format options */ if ((opt.string != NULL) + (opt.type != NULL) - + !!(opt.flags & FLAG_DUMP) + !!(opt.flags & FLAG_DUMP_BIN) > 1) + + !!(opt.flags & FLAG_DUMP_BIN) > 1) { - fprintf(stderr, "Options --string, --type, --dump and --dump-bin are mutually exclusive\n"); + fprintf(stderr, "Options --string, --type and --dump-bin are mutually exclusive\n"); return -1; } - if (opt.flags & (FLAG_DUMP | FLAG_DUMP_BIN)) + if (opt.flags & FLAG_DUMP_BIN) opt.flags &= ~FLAG_QUIET; if ((opt.flags & FLAG_FROM_DUMP) && (opt.flags & FLAG_DUMP_BIN)) |