git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d368ee2
)
pidl: Make static struct api_struct also const
author
Andrew Bartlett
<abartlet@samba.org>
Sun, 20 Nov 2016 22:58:07 +0000
(11:58 +1300)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index a680d5ce9a4bccd0303aa55fabf95d656b98d63d..c87d17a5a78c1ab21b70fc7e25cdd85875a0efc6 100644
(file)
--- 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;