diff options
Diffstat (limited to 'clients/zleave/zleave.c')
-rw-r--r-- | clients/zleave/zleave.c | 5 |
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"); |