summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-10-05 21:41:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:12 -0500
commit0ebab65706e7e2ef82d8af81225db05a5f78b5c4 (patch)
tree1d5f4210f081984176ae8274050c4bb673bef4cf /source3/smbd
parent9d1a95ac9c780339c80cbb0fe3fdf3a78d8c7059 (diff)
downloadsamba-0ebab65706e7e2ef82d8af81225db05a5f78b5c4.tar.gz
samba-0ebab65706e7e2ef82d8af81225db05a5f78b5c4.tar.bz2
samba-0ebab65706e7e2ef82d8af81225db05a5f78b5c4.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...." (This used to be commit 0141e64ad4972232de867137064d0dae62da22ee)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c2
-rw-r--r--source3/smbd/posix_acls.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 6c2b5a4907..c2d7807158 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -21,7 +21,7 @@
#include "includes.h"
-extern struct generic_mapping file_generic_mapping;
+extern const struct generic_mapping file_generic_mapping;
extern struct current_user current_user;
extern userdom_struct current_user_info;
extern BOOL global_client_failed_oplock_break;
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index f7cadeec3e..116917d7eb 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -21,7 +21,7 @@
#include "includes.h"
extern struct current_user current_user;
-extern struct generic_mapping file_generic_mapping;
+extern const struct generic_mapping file_generic_mapping;
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_ACLS