diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-01-03 03:51:22 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-01-03 03:51:22 +0100 |
commit | 47e8547c32b2f01580b5055097ba80220f7f348f (patch) | |
tree | a899356359933d4f8c77f7399ad16379b42397e7 /FICS | |
parent | be5eba8d4f0e93cf225306cdaec25186a6aa4f3e (diff) |
GetPlayerInfo: added usage of ARRAY_SIZE()
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/makerank.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c index 3523782..22dad8a 100644 --- a/FICS/makerank.c +++ b/FICS/makerank.c @@ -12,6 +12,7 @@ #include <bsd/string.h> #endif +#include "common.h" #include "makerank.h" static ENTRY **list; @@ -31,7 +32,7 @@ GetPlayerInfo(char *fileName, ENTRY *e) e->computer = 0; - for (i = 0; i < 4; i++) { + for (i = 0; i < ARRAY_SIZE(e->r); i++) { e->r[i].num = 0; e->r[i].rating = 0; } |