diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-08-09 12:40:55 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-08-09 13:53:01 +0200 |
commit | 857ad72cac5291ff860b49f0b4a77b7f0ebb32be (patch) | |
tree | aedb69fa730702175053cfb2e8924c3013133622 /librpc | |
parent | e2733d362d97f0dca5b622e54d73ae0e0cc643f0 (diff) | |
download | samba-857ad72cac5291ff860b49f0b4a77b7f0ebb32be.tar.gz samba-857ad72cac5291ff860b49f0b4a77b7f0ebb32be.tar.bz2 samba-857ad72cac5291ff860b49f0b4a77b7f0ebb32be.zip |
ndr_drsuapi: fix compiler warning
metze
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/ndr_drsuapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/librpc/ndr/ndr_drsuapi.c b/librpc/ndr/ndr_drsuapi.c index 852153a7e6..f7125e6e55 100644 --- a/librpc/ndr/ndr_drsuapi.c +++ b/librpc/ndr/ndr_drsuapi.c @@ -101,7 +101,7 @@ static void _print_drsuapi_DsAttributeValue_attid(struct ndr_print *ndr, const c static void _print_drsuapi_DsAttributeValue_str(struct ndr_print *ndr, const char *name, const struct drsuapi_DsAttributeValue *r) { - char *str; + void *p; size_t converted_size = 0; ndr_print_struct(ndr, name, "drsuapi_DsAttributeValue"); @@ -110,9 +110,10 @@ static void _print_drsuapi_DsAttributeValue_str(struct ndr_print *ndr, const cha CH_UTF16, CH_UNIX, r->blob->data, r->blob->length, - (void **)&str, &converted_size)) { + &p, &converted_size)) { ndr_print_string(ndr, "string", "INVALID CONVERSION"); } else { + char *str = (char *)p; ndr_print_string(ndr, "string", str); talloc_free(str); } |