mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
smbd: Save 520 bytes of writable memory from every smbd
Move what can be const from the "data" to the "text" segment Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Oct 23 02:37:12 UTC 2019 on sn-devel-184
This commit is contained in:
parent
0559701478
commit
f37b913348
@ -195,7 +195,7 @@ static void init_tables(void)
|
||||
* initializers, but I'll leave it in: less surprise.
|
||||
*/
|
||||
|
||||
static uint8_t char_flags[256] = {
|
||||
static const uint8_t char_flags[256] = {
|
||||
0x80, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
||||
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
||||
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
||||
@ -230,7 +230,7 @@ static uint8_t char_flags[256] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
|
||||
static uint8_t base_reverse[256] = {
|
||||
static const uint8_t base_reverse[256] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
@ -433,7 +433,7 @@ static bool is_mangled(const char *name, const struct share_params *parm)
|
||||
get larger when converted from UNIX to DOS formats)
|
||||
*/
|
||||
|
||||
static char force_shortname_chars[] = " +,[];=";
|
||||
static const char force_shortname_chars[] = " +,[];=";
|
||||
|
||||
static bool is_8_3(const char *name, bool check_case, bool allow_wildcards, const struct share_params *p)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user