From ee442551e1531712226a3a3ba26afff466100bb5 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 21 Jan 2008 07:57:32 +0000 Subject: passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem --- zwgc/standard_ports.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'zwgc/standard_ports.c') 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 -- cgit v1.2.3