svn commit: samba r4718 - in branches/SAMBA_4_0/source/lib: . talloc

tridge at samba.org tridge at samba.org
Wed Jan 12 22:30:54 GMT 2005


Author: tridge
Date: 2005-01-12 22:30:54 +0000 (Wed, 12 Jan 2005)
New Revision: 4718

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4718

Log:
don't use the deprecated __va_copy() unless va_copy() is unavailable




Modified:
   branches/SAMBA_4_0/source/lib/snprintf.c
   branches/SAMBA_4_0/source/lib/talloc/talloc.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/snprintf.c
===================================================================
--- branches/SAMBA_4_0/source/lib/snprintf.c	2005-01-12 22:06:52 UTC (rev 4717)
+++ branches/SAMBA_4_0/source/lib/snprintf.c	2005-01-12 22:30:54 UTC (rev 4718)
@@ -83,6 +83,8 @@
 
 #ifndef VA_COPY
 #ifdef HAVE_VA_COPY
+#define VA_COPY(dest, src) va_copy(dest, src)
+#elif defined(HAVE___VA_COPY)
 #define VA_COPY(dest, src) __va_copy(dest, src)
 #else
 #define VA_COPY(dest, src) (dest) = (src)

Modified: branches/SAMBA_4_0/source/lib/talloc/talloc.c
===================================================================
--- branches/SAMBA_4_0/source/lib/talloc/talloc.c	2005-01-12 22:06:52 UTC (rev 4717)
+++ branches/SAMBA_4_0/source/lib/talloc/talloc.c	2005-01-12 22:30:54 UTC (rev 4718)
@@ -873,6 +873,8 @@
 
 #ifndef VA_COPY
 #ifdef HAVE_VA_COPY
+#define VA_COPY(dest, src) va_copy(dest, src)
+#elif defined(HAVE___VA_COPY)
 #define VA_COPY(dest, src) __va_copy(dest, src)
 #else
 #define VA_COPY(dest, src) (dest) = (src)



More information about the samba-cvs mailing list