aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-24 19:45:41 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-25 02:46:43 +0000
commitc73e940526f8d6724da236c51f84615bc55aeb3a (patch)
tree7bde1cdbd6acf02831755f083ce622feb0b0999b /tools/pidl/lib/Parse/Pidl
parent18d258ac46d11d584901537ac1f5e9341eff379e (diff)
pidl: Make static struct api_struct also const
Pick up change from Samba: commit c6c1463852533ed8234911835b8b1fce29b2d3d8 Author: Andrew Bartlett <abartlet@samba.org> Date: Mon Nov 21 11:58:07 2016 +1300 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> Change-Id: I2a7ce154dff4584c5db445cfd789a8c4f928a338 Reviewed-on: https://code.wireshark.org/review/23693 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tools/pidl/lib/Parse/Pidl')
-rw-r--r--tools/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/tools/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index a680d5ce9a..c87d17a5a7 100644
--- a/tools/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/tools/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;