]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blobdiff - zephyr/zwgc/standard_ports.c
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid...
[1ts-debian.git] / zephyr / zwgc / standard_ports.c
index f679f4e4d5f81d7246b29801b1da99ce8cda2cee..1c6d1ce93f70be2e969b52c40da7c23e32f5ce10 100644 (file)
@@ -208,21 +208,25 @@ void init_standard_ports(int *pargc,
             current++; *pargc -= 2;
             if (!*current)
               usage();
-            if (p = get_standard_port_info((string) *current))
+           p = get_standard_port_info((string) *current);
+            if (p)
                p->port_setup_status = DISABLED;
         } else if (string_Eq((string) *current, "-default")) {
             current++; *pargc -= 2;
             if (!*current)
               usage();
             default_port = (string) *current;
-            if (p = get_standard_port_info((string) *current))
+           p = get_standard_port_info((string) *current);
+            if (p)
                p->port_setup_status = DEFAULT_OK;
         } else if (string_Eq((string) *current, "-ttymode")) {
            default_port = (string) "tty";
            (*pargc)--;
-            if (p = get_standard_port_info(default_port)) {
+           p = get_standard_port_info(default_port);
+            if (p) {
                p->port_setup_status = DEFAULT_OK;
-               if (p = get_standard_port_info ((string) "X"))
+               p = get_standard_port_info ((string) "X");
+               if (p)
                    p->port_setup_status = DISABLED;
            }
        } else