cksum: code shrink
[oweals/busybox.git] / coreutils / tr.c
index 4281a2c694cc949d6f164a45564e4a9effdeffbc..10284e1c9f93314fa58d75983f8dad538369385e 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Mini tr implementation for busybox
  *
- ** Copyright (c) 1987,1997, Prentice Hall   All rights reserved.
+ * Copyright (c) 1987,1997, Prentice Hall   All rights reserved.
  *
  * The name of Prentice Hall may not be used to endorse or promote
  * products derived from this software without specific prior
 //config:      bool "tr (5.5 kb)"
 //config:      default y
 //config:      help
-//config:        tr is used to squeeze, and/or delete characters from standard
-//config:        input, writing to standard output.
+//config:      tr is used to squeeze, and/or delete characters from standard
+//config:      input, writing to standard output.
 //config:
 //config:config FEATURE_TR_CLASSES
 //config:      bool "Enable character classes (such as [:upper:])"
 //config:      default y
 //config:      depends on TR
 //config:      help
-//config:        Enable character classes, enabling commands such as:
-//config:        tr [:upper:] [:lower:] to convert input into lowercase.
+//config:      Enable character classes, enabling commands such as:
+//config:      tr [:upper:] [:lower:] to convert input into lowercase.
 //config:
 //config:config FEATURE_TR_EQUIV
 //config:      bool "Enable equivalence classes"
 //config:      default y
 //config:      depends on TR
 //config:      help
-//config:        Enable equivalence classes, which essentially add the enclosed
-//config:        character to the current set. For instance, tr [=a=] xyz would
-//config:        replace all instances of 'a' with 'xyz'. This option is mainly
-//config:        useful for cases when no other way of expressing a character
-//config:        is possible.
+//config:      Enable equivalence classes, which essentially add the enclosed
+//config:      character to the current set. For instance, tr [=a=] xyz would
+//config:      replace all instances of 'a' with 'xyz'. This option is mainly
+//config:      useful for cases when no other way of expressing a character
+//config:      is possible.
 
 //applet:IF_TR(APPLET(tr, BB_DIR_USR_BIN, BB_SUID_DROP))
 
@@ -298,8 +298,8 @@ int tr_main(int argc UNUSED_PARAM, char **argv)
         * In POSIX locale, these are the same.
         */
 
-       opt_complementary = "-1";
-       opts = getopt32(argv, "+Ccds"); /* '+': stop at first non-option */
+       /* '+': stop at first non-option */
+       opts = getopt32(argv, "^+" "Ccds" "\0" "-1");
        argv += optind;
 
        str1_length = expand(*argv++, &str1);