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