From c6c1463852533ed8234911835b8b1fce29b2d3d8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 21 Nov 2016 11:58:07 +1300 Subject: 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 --- pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pidl') 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; -- cgit v1.2.1