diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
commit | ee442551e1531712226a3a3ba26afff466100bb5 (patch) | |
tree | d7907b07baecce7abe3940bec566b3bf56596f2f /zwgc/subscriptions.c | |
parent | e6fb0737027ee97d911e8d507b1db37446067d10 (diff) |
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'zwgc/subscriptions.c')
-rw-r--r-- | zwgc/subscriptions.c | 7 |
1 files changed, 4 insertions, 3 deletions
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') |