From 16df209315c53ea893f84826dce9d13efb98b3d5 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 27 Jan 2000 22:06:52 +0000 Subject: [PATCH] * main.c (print_status): Now static. Add format attribute if using GNU C git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11973 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/ksu/ChangeLog | 4 ++++ src/clients/ksu/main.c | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 9339a9826..982a79c6e 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,7 @@ + + * main.c (print_status): Now static. Add format attribute if + using GNU C. + 1999-12-02 Ken Raeburn * krb_auth_su.c (krb5_get_tkt_via_passwd): Check length of diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index bd7bbb854..77a499690 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -45,9 +45,13 @@ static int set_env_var PROTOTYPE((char *, char *)); static void sweep_up PROTOTYPE((krb5_context, int, krb5_ccache)); static char * ontty PROTOTYPE((void)); #ifdef HAVE_STDARG_H -void print_status( const char *fmt, ...); +static void print_status( const char *fmt, ...) +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) + __attribute__ ((__format__ (__printf__, 1, 2))) +#endif + ; #else -void print_status(); +static void print_status(); #endif char * get_dir_of_file(); @@ -975,6 +979,7 @@ return 0; } +static #ifdef HAVE_STDARG_H void print_status( const char *fmt, ...) #else -- 2.26.2