summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-03-25 20:37:06 +0000
committertron <tron@openttd.org>2005-03-25 20:37:06 +0000
commit7340aa5b8e5ee1e639890201906b1352705f078b (patch)
tree221f9d317f62d9a2246cde63b084b0064e7734ad
parent67d2ada0207a295b200c97db90a413283eb013d3 (diff)
downloadopenttd-7340aa5b8e5ee1e639890201906b1352705f078b.tar.xz
(svn r2072) Use lengthof() instead of a home brewed version
-rw-r--r--callback_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/callback_table.c b/callback_table.c
index 5c0fdbb1e..4dde04b50 100644
--- a/callback_table.c
+++ b/callback_table.c
@@ -71,4 +71,4 @@ CommandCallback *_callback_table[] = {
/* 0x14 */ CcTerraform
};
-const int _callback_table_count = sizeof (_callback_table) / sizeof (*_callback_table);
+const int _callback_table_count = lengthof(_callback_table);