svn rev #24831: trunk/src/clients/ksu/

raeburn@MIT.EDU raeburn at MIT.EDU
Sun Apr 3 19:21:46 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=24831
Commit By: raeburn
Log Message:
Don't test HAVE_STDARG_H, just assume it.


Changed Files:
U   trunk/src/clients/ksu/main.c
Modified: trunk/src/clients/ksu/main.c
===================================================================
--- trunk/src/clients/ksu/main.c	2011-04-03 22:16:53 UTC (rev 24830)
+++ trunk/src/clients/ksu/main.c	2011-04-03 23:21:46 UTC (rev 24831)
@@ -46,15 +46,11 @@
 static int set_env_var (char *, char *);
 static void sweep_up (krb5_context, krb5_ccache);
 static char * ontty (void);
-#ifdef HAVE_STDARG_H
 static void print_status( const char *fmt, ...)
 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
     __attribute__ ((__format__ (__printf__, 1, 2)))
 #endif
     ;
-#else
-static void print_status();
-#endif
 char * get_dir_of_file();
 
 /* Note -e and -a options are mutually exclusive */
@@ -943,27 +939,14 @@
 }
 
 static
-#ifdef HAVE_STDARG_H
-void print_status( const char *fmt, ...)
-#else
-    void print_status (va_alist)
-    va_dcl
-#endif
+void print_status(const char *fmt, ...)
 {
     va_list ap;
-#ifndef HAVE_STDARG_H
-    char *fmt;
-    va_start (ap);
-    fmt = va_arg (ap, char*);
-    if (!quiet) vfprintf(stderr, fmt, ap);
-    va_end(ap);
-#else
     if (! quiet){
         va_start(ap, fmt);
         vfprintf(stderr, fmt, ap);
         va_end(ap);
     }
-#endif
 }
 
 




More information about the cvs-krb5 mailing list