summaryrefslogtreecommitdiffstats
path: root/src/clients/kdestroy/kdestroy.c
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-08-02 14:50:33 +0000
committerEzra Peisach <epeisach@mit.edu>2000-08-02 14:50:33 +0000
commitbe2a787a1b04362e93a54e31bee76cd734795ce8 (patch)
treea711220f703e42af6b93e2f841431a7e045239c5 /src/clients/kdestroy/kdestroy.c
parent349490659c2fb3b0c937feeae4a1b5ff5264dd7c (diff)
downloadkrb5-be2a787a1b04362e93a54e31bee76cd734795ce8.tar.gz
krb5-be2a787a1b04362e93a54e31bee76cd734795ce8.tar.xz
krb5-be2a787a1b04362e93a54e31bee76cd734795ce8.zip
* kdestroy.c (main): Clean up compiler warnings
There are still some warnings, but this handles the bulk of them. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12597 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients/kdestroy/kdestroy.c')
-rw-r--r--src/clients/kdestroy/kdestroy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c
index d322555cc9..940688b501 100644
--- a/src/clients/kdestroy/kdestroy.c
+++ b/src/clients/kdestroy/kdestroy.c
@@ -64,7 +64,7 @@ int default_k4 = 0;
#endif
-void usage()
+static void usage()
{
#define KRB_AVAIL_STRING(x) ((x)?"available":"not available")
@@ -184,7 +184,8 @@ main(argc, argv)
exit(1);
}
} else {
- if (code = krb5_cc_default(kcontext, &cache)) {
+ code = krb5_cc_default(kcontext, &cache);
+ if (code) {
com_err(progname, code, "while getting default ccache");
exit(1);
}