Use MAX_LAN_USERNAME to determine if we should declare lusername.
This commit is contained in:
@@ -956,7 +956,7 @@ struct instance_globals {
|
|||||||
struct musable m;
|
struct musable m;
|
||||||
|
|
||||||
/* nhlan.c */
|
/* nhlan.c */
|
||||||
#ifdef LAN_FEATURES
|
#ifdef MAX_LAN_USERNAME
|
||||||
char lusername[MAX_LAN_USERNAME];
|
char lusername[MAX_LAN_USERNAME];
|
||||||
int lusername_size;
|
int lusername_size;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -503,8 +503,10 @@ const struct instance_globals g_init = {
|
|||||||
UNDEFINED_VALUES, /* m */
|
UNDEFINED_VALUES, /* m */
|
||||||
|
|
||||||
/* nhlan.c */
|
/* nhlan.c */
|
||||||
|
#ifdef MAX_LAN_USERNAME
|
||||||
UNDEFINED_VALUES, /* lusername */
|
UNDEFINED_VALUES, /* lusername */
|
||||||
MAX_LAN_USERNAME, /* lusername_size */
|
MAX_LAN_USERNAME, /* lusername_size */
|
||||||
|
#endif /* MAX_LAN_USERNAME */
|
||||||
|
|
||||||
/* o_init.c */
|
/* o_init.c */
|
||||||
DUMMY, /* disco */
|
DUMMY, /* disco */
|
||||||
|
|||||||
Reference in New Issue
Block a user