1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove useless cast

This commit is contained in:
Reeze Xia
2015-05-27 10:45:19 +08:00
parent b73f87b1e4
commit f68dc94aa7

View File

@@ -185,7 +185,7 @@ PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo) {
}
ret = read(sock, ptr, len);
if (ret == (size_t)-1 && errno == EINTR) {
if (ret == -1 && errno == EINTR) {
/* Read was interrupted, retry once */
ret = read(sock, ptr, len);
}