summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-02-09 17:50:35 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-09 17:50:35 +0100
commitfa1ead3aa06bfccd5e62a02e6e3c88d223ed7817 (patch)
treef537973dbb930be2d900991bcd37cecac22ab046 /pidl/lib/Parse
parent0afa0ab442c4198dab76373d228f7123fd54eaec (diff)
downloadsamba-fa1ead3aa06bfccd5e62a02e6e3c88d223ed7817.tar.gz
samba-fa1ead3aa06bfccd5e62a02e6e3c88d223ed7817.tar.bz2
samba-fa1ead3aa06bfccd5e62a02e6e3c88d223ed7817.zip
Use discard_const_p rather than CONST_DISCARD.
Diffstat (limited to 'pidl/lib/Parse')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
index 44d21f0b4a..b35762f025 100644
--- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
@@ -2173,7 +2173,7 @@ sub ParseFunctionPull($$)
if (grep(/in/, @{$e->{DIRECTION}})) {
$self->pidl("memcpy(r->out.$e->{NAME}, r->in.$e->{NAME}, ($size) * sizeof(*r->in.$e->{NAME}));");
} else {
- $self->pidl("memset(CONST_DISCARD(struct $fn->{NAME} *,r->out.$e->{NAME}), 0, ($size) * sizeof(*r->out.$e->{NAME}));");
+ $self->pidl("memset(discard_const_p(struct $fn->{NAME} *, r->out.$e->{NAME}), 0, ($size) * sizeof(*r->out.$e->{NAME}));");
}
} else {
$self->pidl("NDR_PULL_ALLOC($ndr, r->out.$e->{NAME});");