]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Just for fun: Move some bytes from bss to text
authorVolker Lendecke <vl@samba.org>
Sat, 31 Jan 2009 15:47:15 +0000 (16:47 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 1 Feb 2009 13:34:22 +0000 (14:34 +0100)
source3/smbd/mangle_hash.c
source3/smbd/mangle_hash2.c

index ebd93ff5d0d0e9d880e1137eb45fa6b69e4451f3..96fe4d2cab372e0b0c4eac92037aa0e80394f54c 100644 (file)
@@ -53,7 +53,7 @@
  *
  */
 
-static const char basechars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_-!@#$%";
+static const char basechars[43]="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_-!@#$%";
 #define MANGLE_BASE       (sizeof(basechars)/sizeof(char)-1)
 
 #define mangle(V) ((char)(basechars[(V) % MANGLE_BASE]))
index 859e5e72272a996b1372bb92693db5aaa159148c..3a3939c51145d47c77bad555af27dd8d5ed43740 100644 (file)
@@ -85,7 +85,7 @@
 #define FLAG_CHECK(c, flag) (char_flags[(unsigned char)(c)] & (flag))
 
 /* these are the characters we use in the 8.3 hash. Must be 36 chars long */
-static const char * const basechars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+static const char basechars[36] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
 #define base_forward(v) basechars[v]
 
 /* the list of reserved dos names - all of these are illegal */