]> arthur.barton.de Git - netatalk.git/commitdiff
Remove obsolete compatibility function declarations for snprintf() and vsnprintf()
authorFrank Lahm <franklahm@gmail.com>
Fri, 25 Oct 2013 09:42:06 +0000 (11:42 +0200)
committerFrank Lahm <franklahm@gmail.com>
Fri, 25 Oct 2013 09:42:06 +0000 (11:42 +0200)
We were providing function declarations without ever providing function implementations.
Also, for some reason, this caues compilation issues on older Linux versions.

include/atalk/compat.h

index a2d318f43a4f81942210a3a922941224f01e043b..083886ccef884042b8748dfab1519e8ec994d5cd 100644 (file)
 extern char *getusershell (void);
 #endif
 
-#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
-# include <stdio.h>
-# include <stdarg.h>
-# ifndef HAVE_SNPRINTF
-int snprintf (char *str,size_t count,const char *fmt,...);
-# endif
-
-# ifndef HAVE_VSNPRINTF
-int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
-# endif
-#endif
-
 /* OpenBSD */
 #if defined(__OpenBSD__) && !defined(ENOTSUP)
 #define ENOTSUP EOPNOTSUPP