diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-12 15:21:23 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-12 15:21:23 +0200 |
commit | 775063494694d247b340bb1145e509e31af27802 (patch) | |
tree | 82c4fa2f3411d25aff61132b928b9055ea8881a8 /client | |
parent | dcab78904794156483878b4b8cd924e30a71bcdd (diff) | |
download | bird-775063494694d247b340bb1145e509e31af27802.tar bird-775063494694d247b340bb1145e509e31af27802.zip |
Introduced `ARRAY_SIZE' macro to replace all the sizeof(a)/sizeof(*a) constructs.
Diffstat (limited to 'client')
-rw-r--r-- | client/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/commands.c b/client/commands.c index aa00be0..5c60df8 100644 --- a/client/commands.c +++ b/client/commands.c @@ -41,7 +41,7 @@ cmd_build_tree(void) cmd_root.plastson = &cmd_root.son; - for(i=0; i<sizeof(command_table) / sizeof(struct cmd_info); i++) + for(i=0; i<ARRAY_SIZE(command_table); i++) { struct cmd_info *cmd = &command_table[i]; struct cmd_node *old, *new; |