summaryrefslogtreecommitdiff
path: root/clients/zctl
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/zctl
parente6fb0737027ee97d911e8d507b1db37446067d10 (diff)
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'clients/zctl')
-rw-r--r--clients/zctl/zctl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/clients/zctl/zctl.c b/clients/zctl/zctl.c
index de96d16..e48a651 100644
--- a/clients/zctl/zctl.c
+++ b/clients/zctl/zctl.c
@@ -17,7 +17,7 @@
#include <pwd.h>
#include <netdb.h>
#ifndef lint
-static const char *rcsid_zctl_c = "$Id$";
+static const char rcsid_zctl_c[] = "$Id$";
#endif
#define SUBSATONCE 7
@@ -52,6 +52,7 @@ void add_file(short, ZSubscription_t *, int);
void del_file(short, ZSubscription_t *, int);
void fix_macros(ZSubscription_t *, ZSubscription_t *, int);
void fix_macros2(char *, char **);
+int make_exist(char *);
int
main(int argc,
@@ -538,8 +539,10 @@ add_file(short wgport,
return;
}
fix_macros(subs,&sub2,1);
- if (retval = (unsub ? ZUnsubscribeTo(&sub2,1,(u_short)wgport) :
- ZSubscribeToSansDefaults(&sub2,1,(u_short)wgport)))
+ retval = (unsub
+ ? ZUnsubscribeTo(&sub2,1,(u_short)wgport)
+ : ZSubscribeToSansDefaults(&sub2,1,(u_short)wgport));
+ if (retval)
ss_perror(sci_idx,retval,
unsub ? "while unsubscribing" :
"while subscribing");