summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-08 08:57:52 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-08 12:22:19 +0100
commitc19ed7669c3621142fd3634634f58bdb9920ddaf (patch)
tree16bb216a2c6d9672a7cb9a603e081088527917e2 /source3
parent0713f9812474ef04df879772f0e3abcdb9e28180 (diff)
downloadsamba-c19ed7669c3621142fd3634634f58bdb9920ddaf.tar.gz
samba-c19ed7669c3621142fd3634634f58bdb9920ddaf.tar.bz2
samba-c19ed7669c3621142fd3634634f58bdb9920ddaf.zip
s3:smbd: make const globals in mangle_hash2.c really static const
const char *foo, means a non-const pointer to a const char. const char * const foo, means a const pointer to a const char. char * const foo, would mean a const pointer to a non-const char. metze
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/mangle_hash2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c
index e4ce0f0d43..8431a7ffe9 100644
--- a/source3/smbd/mangle_hash2.c
+++ b/source3/smbd/mangle_hash2.c
@@ -94,12 +94,12 @@ static unsigned char char_flags[256];
static unsigned mangle_prefix;
/* these are the characters we use in the 8.3 hash. Must be 36 chars long */
-static const char *basechars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+static const char * const basechars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
static unsigned char base_reverse[256];
#define base_forward(v) basechars[v]
/* the list of reserved dos names - all of these are illegal */
-static const char *reserved_names[] =
+static const char * const reserved_names[] =
{ "AUX", "LOCK$", "CON", "COM1", "COM2", "COM3", "COM4",
"LPT1", "LPT2", "LPT3", "NUL", "PRN", NULL };