svn commit: samba r26511 - in branches/SAMBA_4_0/source/lib:
talloc util
Stefan (metze) Metzmacher
metze at samba.org
Mon Dec 17 19:25:33 GMT 2007
> +char *talloc_vasprintf(const void *t, const char *fmt, va_list ap) PRINTF_ATTRIBUTE(2,0);
> +
> char *talloc_vasprintf(const void *t, const char *fmt, va_list ap)
> -{
> +{
> int len;
> char *ret;
> va_list ap2;
> char c;
> -
> +
> /* this call looks strange, but it makes it work on older solaris boxes */
> va_copy(ap2, ap);
> len = vsnprintf(&c, 1, fmt, ap2);
> @@ -1276,6 +1278,7 @@
> Perform string formatting, and return a pointer to newly allocated
> memory holding the result, inside a memory pool.
> */
> +char *talloc_asprintf(const void *t, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
> char *talloc_asprintf(const void *t, const char *fmt, ...)
> {
> va_list ap;
>
Hi Kai,
this is wrong, talloc.h already have this...
metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-cvs/attachments/20071217/c63dcf0a/signature.bin
More information about the samba-cvs
mailing list