Use MAX_LAN_USERNAME to determine if we should declare lusername.

This commit is contained in:
Bart House
2018-12-25 17:25:31 -08:00
parent c2f562e41c
commit cfb0e3ef78
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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 */