diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-10-05 21:41:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:31:12 -0500 |
commit | 0141e64ad4972232de867137064d0dae62da22ee (patch) | |
tree | 3412a241dd2c989e40713a4aec32af17dd5f82a4 /source/lib/sharesec.c | |
parent | 0f2552e20fb66b0b80006a8a7b999ccf6f54c656 (diff) | |
download | samba-0141e64ad4972232de867137064d0dae62da22ee.tar.gz samba-0141e64ad4972232de867137064d0dae62da22ee.tar.xz samba-0141e64ad4972232de867137064d0dae62da22ee.zip |
r25534: Apply some const
Why? It moves these structs from the data into the text segment, so they
will never been copy-on-write copied. Not much, but as in German you say
"Kleinvieh macht auch Mist...."
Diffstat (limited to 'source/lib/sharesec.c')
-rw-r--r-- | source/lib/sharesec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/sharesec.c b/source/lib/sharesec.c index 0363055a581..d30ccbe7ebf 100644 --- a/source/lib/sharesec.c +++ b/source/lib/sharesec.c @@ -29,7 +29,7 @@ static TDB_CONTEXT *share_tdb; /* used for share security descriptors */ /* Map generic permissions to file object specific permissions */ -static struct generic_mapping file_generic_mapping = { +static const struct generic_mapping file_generic_mapping = { FILE_GENERIC_READ, FILE_GENERIC_WRITE, FILE_GENERIC_EXECUTE, |