From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> disk-utils/fsck.c:1474:37: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] !strncmp(argv[i+1], "-", 1) == 0) { ^ Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- disk-utils/fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk-utils/fsck.c b/disk-utils/fsck.c index 78ad43e..8825f0e 100644 --- a/disk-utils/fsck.c +++ b/disk-utils/fsck.c @@ -1471,7 +1471,7 @@ static void parse_argv(int argc, char *argv[]) else goto next_arg; } else if ((i+1) < argc && - !strncmp(argv[i+1], "-", 1) == 0) { + strncmp(argv[i+1], "-", 1) != 0) { progress_fd = string_to_int(argv[i]); if (progress_fd < 0) progress_fd = 0; -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html