pidl: Make static struct api_struct also const
authorAndrew Bartlett <abartlet@samba.org>
Sun, 20 Nov 2016 22:58:07 +0000 (11:58 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 1 Dec 2016 04:54:22 +0000 (05:54 +0100)
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>
pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm

index a680d5ce9a4bccd0303aa55fabf95d656b98d63d..c87d17a5a78c1ab21b70fc7e25cdd85875a0efc6 100644 (file)
@@ -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;