diff options
author | M. Kristall <mkpdev@gmail.com> | 2012-07-12 02:46:19 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:18:16 +0000 |
commit | 8d448680f5b3bcd2a67a3684308bb948e4d3ddad (patch) | |
tree | 8ec357b00c06d7b2e851680270690ad8e5ee3504 /src/ui/ui_shared.c | |
parent | 156289dcdd27a31e77afb36147d456bac9be72a3 (diff) |
* (bug 5000) refactor: use ARRAY_LEN; remove undefined functions; more size_t
(/dev/humancontroller)
Diffstat (limited to 'src/ui/ui_shared.c')
-rw-r--r-- | src/ui/ui_shared.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); /* ================= |