summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2016-11-21 11:58:07 +1300
committerAndrew Bartlett <abartlet@samba.org>2016-12-01 05:54:22 +0100
commitc6c1463852533ed8234911835b8b1fce29b2d3d8 (patch)
tree1ef61e8ebae15b82e6825a31faa868a0632208d1 /pidl
parentd368ee2298bc472caca940a3db7a4f855df6ca21 (diff)
downloadsamba-c6c1463852533ed8234911835b8b1fce29b2d3d8.tar.gz
pidl: Make static struct api_struct also const
This moves the table to read-only memory Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index a680d5ce9a4..c87d17a5a78 100644
--- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -252,7 +252,7 @@ sub ParseInterface($)
pidl "";
pidl "/* Tables */";
- pidl "static struct api_struct api_$if->{NAME}_cmds[] = ";
+ pidl "static const struct api_struct api_$if->{NAME}_cmds[] = ";
pidl "{";
indent;