]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/setproctitle.c
If we are using lutil_lock functions then define NEED_SIMPLE_LOCKING or
[openldap] / libraries / liblutil / setproctitle.c
index 534a69bfe6b5e2f85d070f6f535da841c1b4044d..4c13eb95d16dc5fc49036f8ad02b91719c49f5e0 100644 (file)
@@ -34,8 +34,7 @@ void setproctitle
 #if defined( HAVE_STDARG )
        ( const char *fmt, ... )
 #else
-       ( fmt, va_alist )
-const char *fmt;
+       ( va_alist )
 va_dcl
 #endif
 {
@@ -48,7 +47,10 @@ va_dcl
 #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