From: Stefan Metzmacher Date: Thu, 8 Jan 2009 08:02:21 +0000 (+0100) Subject: s3:smbd: make static const in mangle_hash2.c really static const X-Git-Tag: samba-4.0.0alpha6~221^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ae0c5e5a7375ef58e4dff84eb154be77564d205;p=thirdparty%2Fsamba.git s3:smbd: make static const 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 --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 390b166f5f0..0c449f4ee96 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -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