summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-17 12:08:15 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-18 14:15:33 +0200
commit842ea427bc012a6f26f2d968e8174d8c7ee26aef (patch)
tree48779e9edbf998cec21af447038489a288331bbd /source3/lib
parent4083247a480e721bd041703e25cd2966a76d1196 (diff)
downloadsamba-842ea427bc012a6f26f2d968e8174d8c7ee26aef.tar.gz
samba-842ea427bc012a6f26f2d968e8174d8c7ee26aef.tar.bz2
samba-842ea427bc012a6f26f2d968e8174d8c7ee26aef.zip
Use standard va_copy.
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dprintf.c2
-rw-r--r--source3/lib/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/dprintf.c b/source3/lib/dprintf.c
index a3bb5be43a..b3c830dd5b 100644
--- a/source3/lib/dprintf.c
+++ b/source3/lib/dprintf.c
@@ -41,7 +41,7 @@
msgstr = lang_msg(format);
if (!msgstr) return -1;
- VA_COPY(ap2, ap);
+ va_copy(ap2, ap);
ret = vasprintf(&p, msgstr, ap2);
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 418ae41392..8c2b3feeca 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2565,7 +2565,7 @@ char *smb_xstrndup(const char *s, size_t n)
int n;
va_list ap2;
- VA_COPY(ap2, ap);
+ va_copy(ap2, ap);
n = vasprintf(ptr, format, ap2);
if (n == -1 || ! *ptr) {