xatonum.h: add comment
[oweals/busybox.git] / networking / telnet.c
index 4e8b27ba61b1d8f9c91d8710742955d6b26b8bf5..9085c5848ac55c6ebee914a381561ed6d966783d 100644 (file)
@@ -550,8 +550,8 @@ static void cookmode(void)
                tcsetattr(0, TCSADRAIN, &G.termios_def);
 }
 
-int telnet_main(int argc, char** argv);
-int telnet_main(int argc, char** argv)
+int telnet_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+int telnet_main(int argc, char **argv)
 {
        char *host;
        int port;
@@ -583,7 +583,7 @@ int telnet_main(int argc, char** argv)
                bb_show_usage();
 
 #if ENABLE_FEATURE_TELNET_AUTOLOGIN
-       if (1 & getopt32(argc, argv, "al:", &G.autologin))
+       if (1 & getopt32(argv, "al:", &G.autologin))
                G.autologin = getenv("USER");
        argv += optind;
 #else