diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-07 15:07:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:21:54 -0500 |
commit | 71921605995fa95d84301534760a6bc2db3fa74b (patch) | |
tree | 58676f522882b36e188e2e689b10d6e63f447037 /source3/librpc | |
parent | b1e866c3b7c2ef92599b5801ac8c174cfd404319 (diff) | |
download | samba-71921605995fa95d84301534760a6bc2db3fa74b.tar.gz samba-71921605995fa95d84301534760a6bc2db3fa74b.tar.xz samba-71921605995fa95d84301534760a6bc2db3fa74b.zip |
r22747: Fix some C++ warnings
(This used to be commit a66a04e9f11f6c4462f2b56b447bae4eca7b177c)
Diffstat (limited to 'source3/librpc')
-rw-r--r-- | source3/librpc/ndr/ndr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/librpc/ndr/ndr.c b/source3/librpc/ndr/ndr.c index a692f398df5..6d174d38c3f 100644 --- a/source3/librpc/ndr/ndr.c +++ b/source3/librpc/ndr/ndr.c @@ -213,13 +213,16 @@ static void ndr_print_string_helper(struct ndr_print *ndr, const char *format, . int i; for (i=0;i<ndr->depth;i++) { - ndr->private_data = talloc_asprintf_append(ndr->private_data, " "); + ndr->private_data = talloc_asprintf_append( + (char *)ndr->private_data, " "); } va_start(ap, format); - ndr->private_data = talloc_vasprintf_append(ndr->private_data, format, ap); + ndr->private_data = talloc_vasprintf_append( + (char *)ndr->private_data, format, ap); va_end(ap); - ndr->private_data = talloc_asprintf_append(ndr->private_data, "\n"); + ndr->private_data = talloc_asprintf_append( + (char *)ndr->private_data, "\n"); } /* |