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/ui/ui_shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/ui_shared.c') diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 24dc201e..1cd922ad 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -2364,7 +2364,7 @@ commandDef_t commandList[] = {"transition", &Script_Transition}, // group/name }; -static size_t scriptCommandCount = sizeof( commandList ) / sizeof( commandDef_t ); +static size_t scriptCommandCount = ARRAY_LEN( commandList ); // despite what lcc thinks, we do not get cmdcmp here static int commandComp( const void *a, const void *b ) @@ -4977,7 +4977,7 @@ static bind_t g_bindings[] = }; -static const int g_bindCount = sizeof( g_bindings ) / sizeof( bind_t ); +static const size_t g_bindCount = ARRAY_LEN( g_bindings ); /* ================= -- cgit