1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +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? */
/* XXX: Is the did_reload test too strict? */
conv_silent = True;
init_doschar_table();
init_valid_table();
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
**/
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;