- add libbb function str_tolower to convert a string to lowercase.
[oweals/busybox.git] / coreutils / dos2unix.c
index 19f1a3257043f669ec950b03d148cab0b7083166..1d35d524ade081566c10a2c621f9fd0e89c2279a 100644 (file)
@@ -82,22 +82,23 @@ static int convert(char *fn)
        return 0;
 }
 
-int dos2unix_main(int argc, char *argv[])
+int dos2unix_main(int argc, char **argv);
+int dos2unix_main(int argc, char **argv)
 {
        int o;
 
        /* See if we are supposed to be doing dos2unix or unix2dos */
-       if (bb_applet_name[0] == 'd') {
+       if (applet_name[0] == 'd') {
                ConvType = CT_DOS2UNIX; /*2 */
        } else {
                ConvType = CT_UNIX2DOS; /*1 */
        }
        /* -u and -d are mutally exclusive */
-       bb_opt_complementally = "?:u--d:d--u";
+       opt_complementary = "?:u--d:d--u";
        /* process parameters */
        /* -u convert to unix */
        /* -d convert to dos  */
-       o = bb_getopt_ulflags(argc, argv, "du");
+       o = getopt32(argc, argv, "du");
 
        /* Do the conversion requested by an argument else do the default
         * conversion depending on our name.  */