diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-09 13:43:48 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-09 13:43:48 +0200 |
commit | c65fcb7ff6d73478b83816e8b8cd55a6e09d1a1b (patch) | |
tree | 86bdfee4adcfa1ddaeb6b1b8232ffa48fc6dc117 /FICS/makerank.c | |
parent | 8dedd768c6c200923e9a3cf325e63182cd14cd7d (diff) |
Fixed sign compare
Diffstat (limited to 'FICS/makerank.c')
-rw-r--r-- | FICS/makerank.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c index 8f091b7..57956ed 100644 --- a/FICS/makerank.c +++ b/FICS/makerank.c @@ -28,11 +28,11 @@ GetPlayerInfo(char *fileName, ENTRY *e) char NameWithCase[30]; char field[20]; char line[100]; - int i, done = 0; + int done = 0; e->computer = 0; - for (i = 0; i < ARRAY_SIZE(e->r); i++) { + for (size_t i = 0; i < ARRAY_SIZE(e->r); i++) { e->r[i].num = 0; e->r[i].rating = 0; } @@ -187,7 +187,7 @@ SetComputers(int n) int i = 0; if (snprintf(line, sizeof line, "sort -f %s", COMPUTER_FILE) >= - sizeof line) { + (int)sizeof line) { warnx("%s: snprintf truncated", __func__); return 0; } else if ((fpComp = popen(line, "r")) == NULL) |