s3:smbd: make static const in mangle_hash2.c really static const
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Jan 2009 08:02:21 +0000 (09:02 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 8 Jan 2009 11:22:19 +0000 (12:22 +0100)
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

source3/smbd/trans2.c

index 390b166f5f0d144b21cec75739fa36babe26c64d..0c449f4ee96271684b53a2568997b7f8d58749dc 100644 (file)
@@ -94,7 +94,7 @@ uint64_t get_allocation_size(connection_struct *conn, files_struct *fsp, const S
 
 static bool samba_private_attr_name(const char *unix_ea_name)
 {
-       static const char *prohibited_ea_names[] = {
+       static const char * const prohibited_ea_names[] = {
                SAMBA_POSIX_INHERITANCE_EA_NAME,
                SAMBA_XATTR_DOS_ATTRIB,
                NULL