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 /clients/zshutdown_notify/zshutdown_notify.c | |
parent | e6fb0737027ee97d911e8d507b1db37446067d10 (diff) |
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'clients/zshutdown_notify/zshutdown_notify.c')
-rw-r--r-- | clients/zshutdown_notify/zshutdown_notify.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/clients/zshutdown_notify/zshutdown_notify.c b/clients/zshutdown_notify/zshutdown_notify.c index f2b4932..4e2eaa0 100644 --- a/clients/zshutdown_notify/zshutdown_notify.c +++ b/clients/zshutdown_notify/zshutdown_notify.c @@ -19,7 +19,7 @@ #include <netdb.h> #ifndef lint -static const char *rcsid_zshutdown_notify_c = +static const char rcsid_zshutdown_notify_c[] = "$Id$"; #endif @@ -83,14 +83,16 @@ main(int argc, fprintf(stderr, "%s: can't figure out canonical hostname\n",argv[0]); exit(1); } - if (retval = krb_get_lrealm(rlm, 1)) { + retval = krb_get_lrealm(rlm, 1); + if (retval) { fprintf(stderr, "%s: can't get local realm: %s\n", argv[0], krb_get_err_text(retval)); exit(1); } - if (retval = krb_get_svc_in_tkt(SVC_NAME, hn2, rlm, - SERVER_SERVICE, SERVER_INSTANCE, 1, - KEYFILE)) { + retval = krb_get_svc_in_tkt(SVC_NAME, hn2, rlm, + SERVER_SERVICE, SERVER_INSTANCE, 1, + KEYFILE); + if (retval) { fprintf(stderr, "%s: can't get tickets: %s\n", argv[0], krb_get_err_text(retval)); exit(1); |