diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-06-03 03:07:24 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-06-03 03:07:24 +0000 |
commit | 1cf3228fdc20f0314d1f8e71ad710a5e548b3f72 (patch) | |
tree | 3c291801d4900ffd0f528ded3ca015051016881b /source/lib/dprintf.c | |
parent | 8b5ac00ac60135f83145c65425d7b33a751a15b4 (diff) | |
download | samba-1cf3228fdc20f0314d1f8e71ad710a5e548b3f72.tar.gz samba-1cf3228fdc20f0314d1f8e71ad710a5e548b3f72.tar.xz samba-1cf3228fdc20f0314d1f8e71ad710a5e548b3f72.zip |
put the ifdef for HAVE_VA_COPY in one place rather than in lots of
functions
Diffstat (limited to 'source/lib/dprintf.c')
-rw-r--r-- | source/lib/dprintf.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/lib/dprintf.c b/source/lib/dprintf.c index e3aa2c76696..f0f09e199d4 100644 --- a/source/lib/dprintf.c +++ b/source/lib/dprintf.c @@ -42,11 +42,8 @@ int d_vfprintf(FILE *f, const char *format, va_list ap) msgstr = lang_msg(format); if (!msgstr) return -1; -#if defined(HAVE_VA_COPY) - __va_copy(ap2, ap); -#else - ap2 = ap; -#endif + VA_COPY(ap2, ap); + ret = vasprintf(&p, msgstr, ap2); lang_msg_free(msgstr); |