diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-16 00:17:41 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-16 10:56:58 -0800 |
commit | 2ae400b213a673253da0e3088ce1c3f54d9681cc (patch) | |
tree | 1dc8c4c802f17d772c3e549f7aca1abd1d229596 /source3/lib/util_unistr.c | |
parent | c335e3322d1690331366972cf55dde9f4305981c (diff) | |
download | samba-2ae400b213a673253da0e3088ce1c3f54d9681cc.tar.gz samba-2ae400b213a673253da0e3088ce1c3f54d9681cc.tar.xz samba-2ae400b213a673253da0e3088ce1c3f54d9681cc.zip |
Make init_doschar_table() static
It's only called directly before init_valid_table() anyway, so move it there.
(This used to be commit b6d1d2428866712a550a354732e2386b4f87b67b)
Diffstat (limited to 'source3/lib/util_unistr.c')
-rw-r--r-- | source3/lib/util_unistr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 5bb8cbae961..510f40e6111 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -190,7 +190,7 @@ static int check_dos_char_slowly(smb_ucs2_t c) * Fill out doschar table the hard way, by examining each character **/ -void init_doschar_table(void) +static void init_doschar_table(void) { int i, j, byteval; @@ -228,6 +228,8 @@ void init_valid_table(void) const char *allowed = ".!#$%&'()_-@^`~"; uint8 *valid_file; + init_doschar_table(); + if (mapped_file) { /* Can't unmap files, so stick with what we have */ return; |