summaryrefslogtreecommitdiff
path: root/librpc/gen_ndr/ndr_ntsvcs.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2008-12-30 16:02:09 -0800
committerTim Prouty <tprouty@samba.org>2008-12-30 16:19:43 -0800
commita66c034c8e3da47bf492efb631a737581cc4b0d6 (patch)
tree263368c3104a6e9ddf88d6ddbd62dbb50aecf03e /librpc/gen_ndr/ndr_ntsvcs.c
parent2337f402f0f2fd6c1fa077b1b35347905a38c715 (diff)
downloadsamba-a66c034c8e3da47bf492efb631a737581cc4b0d6.tar.gz
samba-a66c034c8e3da47bf492efb631a737581cc4b0d6.tar.bz2
samba-a66c034c8e3da47bf492efb631a737581cc4b0d6.zip
librpc: Re-run make idl-full from source3
Diffstat (limited to 'librpc/gen_ndr/ndr_ntsvcs.c')
-rw-r--r--librpc/gen_ndr/ndr_ntsvcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/gen_ndr/ndr_ntsvcs.c b/librpc/gen_ndr/ndr_ntsvcs.c
index ef2ecc1d7d..32040d91f6 100644
--- a/librpc/gen_ndr/ndr_ntsvcs.c
+++ b/librpc/gen_ndr/ndr_ntsvcs.c
@@ -580,7 +580,7 @@ static enum ndr_err_code ndr_pull_PNP_GetDeviceList(struct ndr_pull *ndr, int fl
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_length_0, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
NDR_PULL_ALLOC_N(ndr, r->out.buffer, *r->in.length);
- memset(r->out.buffer, 0, (*r->in.length) * sizeof(*r->out.buffer));
+ memset(CONST_DISCARD(struct PNP_GetDeviceList *,r->out.buffer), 0, (*r->in.length) * sizeof(*r->out.buffer));
NDR_PULL_ALLOC(ndr, r->out.length);
*r->out.length = *r->in.length;
}
@@ -896,7 +896,7 @@ static enum ndr_err_code ndr_pull_PNP_GetDeviceRegProp(struct ndr_pull *ndr, int
NDR_PULL_ALLOC(ndr, r->out.reg_data_type);
*r->out.reg_data_type = *r->in.reg_data_type;
NDR_PULL_ALLOC_N(ndr, r->out.buffer, *r->in.buffer_size);
- memset(r->out.buffer, 0, (*r->in.buffer_size) * sizeof(*r->out.buffer));
+ memset(CONST_DISCARD(struct PNP_GetDeviceRegProp *,r->out.buffer), 0, (*r->in.buffer_size) * sizeof(*r->out.buffer));
NDR_PULL_ALLOC(ndr, r->out.buffer_size);
*r->out.buffer_size = *r->in.buffer_size;
NDR_PULL_ALLOC(ndr, r->out.needed);