aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/makerank.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/makerank.c')
-rw-r--r--FICS/makerank.c6
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)