X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmp.c;h=24b6c3f925bcbe7dccd20b719290751ca58ae809;hb=7cf9fed83f6e7bf86eb4cac324b98734739fa861;hp=98b747eedb0f2c1a58649d23cb74faf42f84336a;hpb=872138de50b1c5bbf105b0243f5778fcb02b310b;p=oweals%2Fbusybox.git diff --git a/cmp.c b/cmp.c index 98b747eed..24b6c3f92 100644 --- a/cmp.c +++ b/cmp.c @@ -3,7 +3,7 @@ * Mini cmp implementation for busybox * * - * Copyright (C) 2000 by Lineo, inc. + * Copyright (C) 1999,2000,2001 by Lineo, inc. * Written by Matt Kraai * * This program is free software; you can redistribute it and/or modify @@ -22,10 +22,11 @@ * */ -#include "busybox.h" #include #include #include +#include +#include "busybox.h" int cmp_main(int argc, char **argv) { @@ -35,7 +36,7 @@ int cmp_main(int argc, char **argv) /* parse argv[] */ if (argc < 2 || 3 < argc) - usage(cmp_usage); + show_usage(); fp1 = xfopen(argv[1], "r"); if (argv[2] != NULL) { @@ -54,7 +55,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')