From be2a787a1b04362e93a54e31bee76cd734795ce8 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 2 Aug 2000 14:50:33 +0000 Subject: [PATCH] * 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 --- src/clients/kdestroy/ChangeLog | 4 ++++ src/clients/kdestroy/kdestroy.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/clients/kdestroy/ChangeLog b/src/clients/kdestroy/ChangeLog index b16a72c76..bf4c61b6d 100644 --- a/src/clients/kdestroy/ChangeLog +++ b/src/clients/kdestroy/ChangeLog @@ -1,3 +1,7 @@ +2000-08-02 Ezra Peisach + + * kdestroy.c (main): Clean up compiler warnings. + 2000-03-16 Ezra Peisach * kdestroy.c: Do not define variables if v4 compatilibilty is not diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index d322555cc..940688b50 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); } -- 2.26.2