aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/cmp.c')
-rw-r--r--coreutils/cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cmp.c b/coreutils/cmp.c
index 98b747eed..6b955447c 100644
--- a/coreutils/cmp.c
+++ b/coreutils/cmp.c
@@ -54,7 +54,7 @@ int cmp_main(int argc, char **argv)
else
printf("%s %s differ: char %d, line %d\n", filename1, filename2,
char_pos, line_pos);
- return 1;
+ return EXIT_FAILURE;
}
char_pos++;
if (c1 == '\n')