summaryrefslogtreecommitdiff
path: root/source3/lib/dprintf.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-06-03 03:07:24 +0000
committerAndrew Tridgell <tridge@samba.org>2002-06-03 03:07:24 +0000
commit0bb6053946a1572a3496958e543d5c9ddf74120b (patch)
treeb176a0e6a348c2d58d7ba52405a484d1384a6bb9 /source3/lib/dprintf.c
parent9401cdbb514a65b96910117a5a850af0eef45dd7 (diff)
downloadsamba-0bb6053946a1572a3496958e543d5c9ddf74120b.tar.gz
samba-0bb6053946a1572a3496958e543d5c9ddf74120b.tar.bz2
samba-0bb6053946a1572a3496958e543d5c9ddf74120b.zip
put the ifdef for HAVE_VA_COPY in one place rather than in lots of
functions (This used to be commit 1cf3228fdc20f0314d1f8e71ad710a5e548b3f72)
Diffstat (limited to 'source3/lib/dprintf.c')
-rw-r--r--source3/lib/dprintf.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/lib/dprintf.c b/source3/lib/dprintf.c
index e3aa2c7669..f0f09e199d 100644
--- a/source3/lib/dprintf.c
+++ b/source3/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);