]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/setproctitle.c
Reverse unintended commit
[openldap] / libraries / liblutil / setproctitle.c
index a103337154903defb1d7cec42c5435929d2485f5..8a095e2c5d16eacf271743d7db3906fda16a9dcb 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 #include "portable.h"
 
 #ifndef HAVE_SETPROCTITLE
@@ -41,15 +42,8 @@ void setproctitle( const char *fmt, ... )
 
        va_start(ap, fmt);
 
-#ifdef HAVE_VSNPRINTF
        buf[sizeof(buf) - 1] = '\0';
        vsnprintf( buf, sizeof(buf)-1, fmt, ap );
-#elif HAVE_VPRINTF
-       vsprintf( buf, fmt, ap ); /* hope it's not too long */
-#else
-       /* use doprnt() */
-       chokeme = "choke me!  I don't have a doprnt() manual handy";
-#endif
 
        va_end(ap);