]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/setproctitle.c
Change reporting of SASL username
[openldap] / libraries / liblutil / setproctitle.c
index 6578a8089504925f1c8da910ae11ed5342de9635..6d1ab6a032a83e5fd494917d1f562445ad915a9b 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 #include "portable.h"
 
 #ifndef HAVE_SETPROCTITLE
@@ -31,13 +32,7 @@ int  Argc;           /* original argc */
  */
 
 /* VARARGS */
-void setproctitle
-#if defined( HAVE_STDARG )
-       ( const char *fmt, ... )
-#else
-       ( va_alist )
-va_dcl
-#endif
+void setproctitle( const char *fmt, ... )
 {
        static char *endargv = (char *)0;
        char    *s;
@@ -45,14 +40,7 @@ va_dcl
        char    buf[ 1024 ];
        va_list ap;
 
-#if defined( HAVE_STDARG )
        va_start(ap, fmt);
-#else
-       const char *fmt;
-
-       va_start(ap);
-       fmt = va_arg(ap, const char *);
-#endif
 
 #ifdef HAVE_VSNPRINTF
        buf[sizeof(buf) - 1] = '\0';