Remove warnings

This commit is contained in:
Zhi Guan
2022-10-13 17:45:06 +08:00
parent 53cb1fbee0
commit 5e2381f122
19 changed files with 43 additions and 44 deletions

View File

@@ -161,7 +161,7 @@ bad:
FD_SET(conn.sock, &fds);
FD_SET(fileno(stdin), &fds);
if (select(conn.sock + 1, &fds, NULL, NULL, NULL) < 0) {
if (select((int)(conn.sock + 1), &fds, NULL, NULL, NULL) < 0) {
fprintf(stderr, "%s: select failed\n", prog);
goto end;
}