changeset 44566:7a0ad319b38f

(read_score): Fix type of second parameter of getdelim to be of type size_t instead of int. Use 0 instead of ESUCCES.
author Andreas Schwab <schwab@suse.de>
date Sun, 14 Apr 2002 01:02:36 +0000
parents 9bdd94e7a205
children 2575114cfbee
files lib-src/update-game-score.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/update-game-score.c	Sat Apr 13 20:26:36 2002 +0000
+++ b/lib-src/update-game-score.c	Sun Apr 14 01:02:36 2002 +0000
@@ -249,7 +249,7 @@
   ungetc(c, f);
 #ifdef HAVE_GETDELIM
   {
-    int count = 0;
+    size_t count = 0;
     if (getdelim(&score->username, &count, ' ', f) < 1
 	|| score->username == NULL)
       return -1;
@@ -279,9 +279,9 @@
 #endif
 #ifdef HAVE_GETLINE
   score->data = NULL;
-  errno = ESUCCES;
+  errno = 0;
   {
-    int len;
+    size_t len;
     if (getline(&score->data, &len, f) < 0)
       return -1;
     score->data[strlen(score->data)-1] = '\0';