From cfb0e3ef78ec67c4f4c0beb96d2438efe31f2cfa Mon Sep 17 00:00:00 2001 From: Bart House Date: Tue, 25 Dec 2018 17:25:31 -0800 Subject: [PATCH] Use MAX_LAN_USERNAME to determine if we should declare lusername. --- include/decl.h | 2 +- src/decl.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/decl.h b/include/decl.h index cc655ae30..7bb2b1aea 100644 --- a/include/decl.h +++ b/include/decl.h @@ -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 diff --git a/src/decl.c b/src/decl.c index a53f4d477..84e16b280 100644 --- a/src/decl.c +++ b/src/decl.c @@ -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 */