summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-11-09 12:48:09 +0000
committerJeremy Allison <jra@samba.org>2014-11-14 00:31:16 +0100
commit04a9a1ac6def992fe0ed97ad96b706bec709ec18 (patch)
tree248b0ef3cbed519707456954994bb74ef9d1fcd2 /source3/lib
parent2dab2f0f73160bafcaa3aa4cce7dcccc1ddcb3ba (diff)
downloadsamba-04a9a1ac6def992fe0ed97ad96b706bec709ec18.tar.gz
samba-04a9a1ac6def992fe0ed97ad96b706bec709ec18.tar.xz
samba-04a9a1ac6def992fe0ed97ad96b706bec709ec18.zip
lib: Slightly simplify strupper_m
toupper_ascii_fast_table is only referenced here, make it static. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Nov 14 00:31:16 CET 2014 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 2b0830c2ff..3de64c6f5a 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -25,7 +25,7 @@
#include "includes.h"
#include "lib/param/loadparm.h"
-const char toupper_ascii_fast_table[128] = {
+static const char toupper_ascii_fast_table[128] = {
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf,
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
@@ -559,7 +559,7 @@ bool strupper_m(char *s)
(ie. they match for the first 128 chars) */
while (*s && !(((unsigned char)s[0]) & 0x80)) {
- *s = toupper_ascii_fast((unsigned char)*s);
+ *s = toupper_ascii_fast_table[(unsigned char)s[0]];
s++;
}