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;
|
||||
|
||||
/* nhlan.c */
|
||||
#ifdef LAN_FEATURES
|
||||
#ifdef MAX_LAN_USERNAME
|
||||
char lusername[MAX_LAN_USERNAME];
|
||||
int lusername_size;
|
||||
#endif
|
||||
|
||||
@@ -503,8 +503,10 @@ const struct instance_globals g_init = {
|
||||
UNDEFINED_VALUES, /* m */
|
||||
|
||||
/* nhlan.c */
|
||||
#ifdef MAX_LAN_USERNAME
|
||||
UNDEFINED_VALUES, /* lusername */
|
||||
MAX_LAN_USERNAME, /* lusername_size */
|
||||
#endif /* MAX_LAN_USERNAME */
|
||||
|
||||
/* o_init.c */
|
||||
DUMMY, /* disco */
|
||||
|
||||
Reference in New Issue
Block a user