eliminate mixed declaration, to support older compilers a little longer.
authorpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Mon, 28 Nov 2005 16:29:45 +0000 (16:29 +0000)
committerpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Mon, 28 Nov 2005 16:29:45 +0000 (16:29 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@12553 69ca8d6d-28ef-0310-b511-8ec308f3f277

networking/telnet.c

index d9f0e94..3143631 100644 (file)
@@ -645,8 +645,7 @@ extern int telnet_main(int argc, char** argv)
                bb_show_usage();
 
 #ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
-       unsigned long flags = bb_getopt_ulflags(argc, argv, "al:", &autologin);
-       if (flags & 1)
+       if (1 & bb_getopt_ulflags(argc, argv, "al:", &autologin))
                autologin = getenv("USER");
        
        if (optind < argc) {