Ver código fonte

Kill 2 signedness warnings

Peter S. Mazinger 18 anos atrás
pai
commit
a0f9202936

+ 1 - 1
libc/sysdeps/linux/common/getdents.c

@@ -63,7 +63,7 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes)
     dp = (struct dirent *) buf;
     skdp = kdp = alloca (red_nbytes);
 
-    retval = __syscall_getdents(fd, (char *)kdp, red_nbytes);
+    retval = __syscall_getdents(fd, (unsigned char *)kdp, red_nbytes);
     if (retval == -1)
 	return -1;
 

+ 1 - 1
libc/sysdeps/linux/common/getdents64.c

@@ -57,7 +57,7 @@ ssize_t __getdents64 (int fd, char *buf, size_t nbytes)
     dp = (struct dirent64 *) buf;
     skdp = kdp = alloca (red_nbytes);
 
-    retval = __syscall_getdents64(fd, (char *)kdp, red_nbytes);
+    retval = __syscall_getdents64(fd, (unsigned char *)kdp, red_nbytes);
     if (retval == -1)
 	return -1;