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:
committed by
Jeremy Allison
parent
99c59e809e
commit
b6d1d24288
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user