diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-05-30 13:53:20 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-05-30 13:53:20 +0000 |
commit | fbf03c89e6b1980f4f75a657f9760edb7445d8cb (patch) | |
tree | 46579ab022be42e3a9ae8fb9130c9cc0f0aebaf3 /source | |
parent | ab2465239414853a14529f88a25f13c392aa2d3f (diff) | |
download | samba-fbf03c89e6b1980f4f75a657f9760edb7445d8cb.tar.gz samba-fbf03c89e6b1980f4f75a657f9760edb7445d8cb.tar.xz samba-fbf03c89e6b1980f4f75a657f9760edb7445d8cb.zip |
fixed asprintf declaration
Diffstat (limited to 'source')
-rw-r--r-- | source/include/includes.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index e30831ac804..e7d983064f0 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -865,9 +865,6 @@ int setresuid(uid_t ruid, uid_t euid, uid_t suid); #if (defined(USE_SETRESUID) && !defined(HAVE_SETRESGID_DECL)) int setresgid(gid_t rgid, gid_t egid, gid_t sgid); #endif -#ifndef HAVE_ASPRINTF_DECL -int asprintf(char **ptr, const char *format, ...); -#endif #ifndef HAVE_VASPRINTF_DECL int vasprintf(char **ptr, const char *format, va_list ap); #endif @@ -1009,11 +1006,11 @@ extern int DEBUGLEVEL; /* add varargs prototypes with printf checking */ int fdprintf(int , char *, ...) PRINTF_ATTRIBUTE(2,3); -#ifndef HAVE_SNPRINTF +#ifndef HAVE_SNPRINTF_DECL int snprintf(char *,size_t ,const char *, ...) PRINTF_ATTRIBUTE(3,4); #endif -#ifndef HAVE_ASPRINTF -int asprintf(char **,char *, ...) PRINTF_ATTRIBUTE(2,3); +#ifndef HAVE_ASPRINTF_DECL +int asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3); #endif /* we used to use these fns, but now we have good replacements |