rpm2cpio: handle bz2 too; code shrink
[oweals/busybox.git] / coreutils / uniq.c
index 41f1fed7b7d94384fca0ff5919111ef1e719f317..126eaeef99dd672d243bfab68ce86fd993c79da0 100644 (file)
@@ -26,7 +26,7 @@ static FILE *xgetoptfile_uniq_s(char **argv, int read0write2)
 }
 
 int uniq_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int uniq_main(int argc ATTRIBUTE_UNUSED, char **argv)
+int uniq_main(int argc UNUSED_PARAM, char **argv)
 {
        FILE *in, *out;
        const char *s0, *e0, *s1, *e1, *input_filename;
@@ -45,7 +45,7 @@ int uniq_main(int argc ATTRIBUTE_UNUSED, char **argv)
        };
 
        skip_fields = skip_chars = 0;
-       max_chars = -1;
+       max_chars = INT_MAX;
 
        opt_complementary = "f+:s+:w+";
        opt = getopt32(argv, "cduf:s:w:", &skip_fields, &skip_chars, &max_chars);