Parcourir la source

fix a warning

Mike Frysinger il y a 18 ans
Parent
commit
974dfe15ec
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      libc/termios/ttyname.c

+ 1 - 1
libc/termios/ttyname.c

@@ -47,7 +47,7 @@ int attribute_hidden __ttyname_r(int fd, char *ubuf, size_t ubuflen)
 	char *s;
 	DIR *fp;
 	int rv;
-	int len;
+	size_t len;
 	char buf[TTYNAME_BUFLEN];
 
 	if (fstat(fd, &st) < 0) {