From 8d448680f5b3bcd2a67a3684308bb948e4d3ddad Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Thu, 12 Jul 2012 02:46:19 +0000 Subject: * (bug 5000) refactor: use ARRAY_LEN; remove undefined functions; more size_t (/dev/humancontroller) --- src/game/g_admin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/g_admin.c') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index eef4f1ad..085b394c 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -209,7 +209,7 @@ g_admin_cmd_t g_admin_cmds[ ] = } }; -static size_t adminNumCmds = sizeof( g_admin_cmds ) / sizeof( g_admin_cmds[ 0 ] ); +static size_t adminNumCmds = ARRAY_LEN( g_admin_cmds ); static int admin_level_maxname = 0; g_admin_level_t *g_admin_levels = NULL; -- cgit