From: Andrew Bartlett Date: Sun, 20 Nov 2016 22:58:07 +0000 (+1300) Subject: pidl: Make static struct api_struct also const X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=c6c1463852533ed8234911835b8b1fce29b2d3d8;p=amitay%2Fsamba.git pidl: Make static struct api_struct also const This moves the table to read-only memory Signed-off-by: Andrew Bartlett Reviewed-by: Andreas Schneider Reviewed-by: Garming Sam --- 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;