getty: do not emit bogus error message on EOF
[oweals/busybox.git] / loginutils / chpasswd.c
index 4bffbe83f1a22e319910c51c9876b907ca31c9dc..18172316993d1d3f1f849e9943dd36543cfff0c6 100644 (file)
@@ -7,7 +7,7 @@
  */
 #include "libbb.h"
 
-#if ENABLE_GETOPT_LONG
+#if ENABLE_LONG_OPTS
 static const char chpasswd_longopts[] ALIGN1 =
        "encrypted\0" No_argument "e"
        "md5\0"       No_argument "m"
@@ -29,7 +29,7 @@ int chpasswd_main(int argc UNUSED_PARAM, char **argv)
                bb_error_msg_and_die(bb_msg_perm_denied_are_you_root);
 
        opt_complementary = "m--e:e--m";
-       USE_GETOPT_LONG(applet_long_options = chpasswd_longopts;)
+       IF_LONG_OPTS(applet_long_options = chpasswd_longopts;)
        opt = getopt32(argv, "em");
 
        while ((name = xmalloc_fgetline(stdin)) != NULL) {