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 --- clients/zleave/zleave.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clients/zleave') diff --git a/clients/zleave/zleave.c b/clients/zleave/zleave.c index 4483138..e7ce4b6 100644 --- a/clients/zleave/zleave.c +++ b/clients/zleave/zleave.c @@ -17,7 +17,7 @@ #include #ifndef lint -static char rcsid_zlocate_c[] = "$Id$"; +static const char rcsid_zlocate_c[] = "$Id$"; #endif /* lint */ /* @@ -254,7 +254,8 @@ doalarm(long nmins) daytime += gseconds; whenleave = ctime(&daytime); - if (fp = fopen(tempfile,"r")) { + fp = fopen(tempfile,"r"); + if (fp) { if (fscanf(fp, "%d", &oldpid) == 1) if (!kill(oldpid,9)) printf("Old zleave process killed.\n"); -- cgit v1.2.3