summaryrefslogtreecommitdiff
path: root/zwgc/standard_ports.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-01-21 07:57:32 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-01-21 07:57:32 +0000
commitee442551e1531712226a3a3ba26afff466100bb5 (patch)
treed7907b07baecce7abe3940bec566b3bf56596f2f /zwgc/standard_ports.c
parente6fb0737027ee97d911e8d507b1db37446067d10 (diff)
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'zwgc/standard_ports.c')
-rw-r--r--zwgc/standard_ports.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/zwgc/standard_ports.c b/zwgc/standard_ports.c
index f679f4e..1c6d1ce 100644
--- a/zwgc/standard_ports.c
+++ b/zwgc/standard_ports.c
@@ -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