summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl/Samba4/NDR
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-02-09 18:39:27 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-09 18:39:27 +0100
commit39172b5ce91610773ecd5f4d6b2c7b25b5dfee5d (patch)
treedacaeca8fd7d2051dc1b7609996597b3402ca38b /pidl/lib/Parse/Pidl/Samba4/NDR
parentfa1ead3aa06bfccd5e62a02e6e3c88d223ed7817 (diff)
downloadsamba-39172b5ce91610773ecd5f4d6b2c7b25b5dfee5d.tar.gz
samba-39172b5ce91610773ecd5f4d6b2c7b25b5dfee5d.tar.bz2
samba-39172b5ce91610773ecd5f4d6b2c7b25b5dfee5d.zip
Remove an invalid discard_const_p() - it masks an actual
bug in pidl where pidl uses "const" in a struct where there should not be const. There is only a single place in the Samba codebase where this triggers a warning.
Diffstat (limited to 'pidl/lib/Parse/Pidl/Samba4/NDR')
-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 b35762f025..84752dac0d 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(discard_const_p(struct $fn->{NAME} *, r->out.$e->{NAME}), 0, ($size) * sizeof(*r->out.$e->{NAME}));");
+ $self->pidl("memset(r->out.$e->{NAME}, 0, ($size) * sizeof(*r->out.$e->{NAME}));");
}
} else {
$self->pidl("NDR_PULL_ALLOC($ndr, r->out.$e->{NAME});");