summaryrefslogtreecommitdiff
path: root/clients/zleave
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 /clients/zleave
parente6fb0737027ee97d911e8d507b1db37446067d10 (diff)
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'clients/zleave')
-rw-r--r--clients/zleave/zleave.c5
1 files changed, 3 insertions, 2 deletions
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 <com_err.h>
#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");