summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2012-07-12 02:46:19 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:16 +0000
commit8d448680f5b3bcd2a67a3684308bb948e4d3ddad (patch)
tree8ec357b00c06d7b2e851680270690ad8e5ee3504 /src/game/g_admin.c
parent156289dcdd27a31e77afb36147d456bac9be72a3 (diff)
* (bug 5000) refactor: use ARRAY_LEN; remove undefined functions; more size_t
(/dev/humancontroller)
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c2
1 files changed, 1 insertions, 1 deletions
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;