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/subscriptions.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'zwgc/subscriptions.c') diff --git a/zwgc/subscriptions.c b/zwgc/subscriptions.c index cfe932e..5123d5f 100644 --- a/zwgc/subscriptions.c +++ b/zwgc/subscriptions.c @@ -12,7 +12,7 @@ */ #if (!defined(lint) && !defined(SABER)) -static char rcsid_subscriptions_c[] = "$Id$"; +static const char rcsid_subscriptions_c[] = "$Id$"; #endif /****************************************************************************/ @@ -271,8 +271,9 @@ load_subscriptions_from_file(FILE *file) /* Parse line */ /* <<<>>> * The below does NOT work is the recipient field is "": - */ - if (temp = strchr(line, '#')) + */ + temp = strchr(line, '#'); + if (temp) *temp = '\0'; for (temp=line; *temp && *temp==' '; temp++) ; if (!*temp || *temp=='\n') -- cgit v1.2.3