Issue an error message when an incorrect flush argument is

encountered.`

MFC after:	2 weeks
This commit is contained in:
Cy Schubert 2017-01-25 20:41:16 +00:00
parent f27ac8e297
commit d780a32bc5

View File

@ -410,12 +410,16 @@ static void flushfilter(arg, filter)
return;
}
if (strchr(arg, 'i') || strchr(arg, 'I'))
else if (strchr(arg, 'i') || strchr(arg, 'I'))
fl = FR_INQUE;
if (strchr(arg, 'o') || strchr(arg, 'O'))
else if (strchr(arg, 'o') || strchr(arg, 'O'))
fl = FR_OUTQUE;
if (strchr(arg, 'a') || strchr(arg, 'A'))
else if (strchr(arg, 'a') || strchr(arg, 'A'))
fl = FR_OUTQUE|FR_INQUE;
else {
fprintf(stderr, "Incorrect flush argument: %s\n", arg);
usage();
}
if (opts & OPT_INACTIVE)
fl |= FR_INACTIVE;
rem = fl;