]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
fixed ch's type ('\n' was implicitly casted to an int and compared with ch, which...
authormortenp <none@none>
Thu, 22 Apr 2004 23:57:53 +0000 (09:57 +1000)
committermortenp <none@none>
Thu, 22 Apr 2004 23:57:53 +0000 (09:57 +1000)
src/mygetline.c

index d109044a41e7199662b2d399a601adf952406374..d338f1103d306086320f6fc0f2f777ea7025d05b 100644 (file)
@@ -45,7 +45,7 @@ char *mygetline(int fd)
 {
        size_t i = 0, buf_size = BUFSIZE;  /* initial buffer size */
        char *buf = malloc(buf_size);
-       int ch;
+       char ch;
 
        buf[0] = '\0';
        while(read(fd, &ch, 1) > 0) {