1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Make init_doschar_table() static

It's only called directly before init_valid_table() anyway, so move it there.
This commit is contained in:
Volker Lendecke
2007-12-16 00:17:41 +01:00
committed by Jeremy Allison
parent 99c59e809e
commit b6d1d24288
2 changed files with 3 additions and 2 deletions

View File

@ -178,7 +178,6 @@ void init_iconv(void)
* codepage changes? */ * codepage changes? */
/* XXX: Is the did_reload test too strict? */ /* XXX: Is the did_reload test too strict? */
conv_silent = True; conv_silent = True;
init_doschar_table();
init_valid_table(); init_valid_table();
conv_silent = False; conv_silent = False;
} }

View File

@ -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 * 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; int i, j, byteval;
@ -228,6 +228,8 @@ void init_valid_table(void)
const char *allowed = ".!#$%&'()_-@^`~"; const char *allowed = ".!#$%&'()_-@^`~";
uint8 *valid_file; uint8 *valid_file;
init_doschar_table();
if (mapped_file) { if (mapped_file) {
/* Can't unmap files, so stick with what we have */ /* Can't unmap files, so stick with what we have */
return; return;