summaryrefslogtreecommitdiff
path: root/clients/zshutdown_notify/zshutdown_notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/zshutdown_notify/zshutdown_notify.c')
-rw-r--r--clients/zshutdown_notify/zshutdown_notify.c12
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);