summaryrefslogtreecommitdiff
path: root/source3/librpc/ndr/ndr_basic.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-02-25 15:24:49 +0100
committerVolker Lendecke <vl@samba.org>2008-02-25 16:09:26 +0100
commit317639287886181edf08ccecad1b324e4cc55d0b (patch)
tree8388cbc402ff784babdfcd892daa87090497a8a1 /source3/librpc/ndr/ndr_basic.c
parentcd95385207ff2a9c27031dcff19b7b74df3a626f (diff)
downloadsamba-317639287886181edf08ccecad1b324e4cc55d0b.tar.gz
samba-317639287886181edf08ccecad1b324e4cc55d0b.tar.bz2
samba-317639287886181edf08ccecad1b324e4cc55d0b.zip
Fix some warnings
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result (This used to be commit ad37b7b0aee265a3e4d8b7552610f4b9a105434d)
Diffstat (limited to 'source3/librpc/ndr/ndr_basic.c')
-rw-r--r--source3/librpc/ndr/ndr_basic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/librpc/ndr/ndr_basic.c b/source3/librpc/ndr/ndr_basic.c
index 54397c9469..f342c6e36f 100644
--- a/source3/librpc/ndr/ndr_basic.c
+++ b/source3/librpc/ndr/ndr_basic.c
@@ -773,8 +773,7 @@ _PUBLIC_ void ndr_print_array_uint8(struct ndr_print *ndr, const char *name,
ndr->depth++;
for (i=0;i<count;i++) {
char *idx=NULL;
- asprintf(&idx, "[%d]", i);
- if (idx) {
+ if (asprintf(&idx, "[%d]", i) != -1) {
ndr_print_uint8(ndr, idx, data[i]);
free(idx);
}