From aeb60e6d041cf1995233f5cb6af64fa880200e84 Mon Sep 17 00:00:00 2001 From: "Ned T. Crigler" Date: Sun, 1 Jul 2012 21:26:10 +0000 Subject: Use ssize_t for the return type of read/write instead of int. --- attach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'attach.c') diff --git a/attach.c b/attach.c index e485735..99e101d 100644 --- a/attach.c +++ b/attach.c @@ -217,7 +217,7 @@ attach_main(int noerror) /* Pty activity */ if (n > 0 && FD_ISSET(s, &readfds)) { - int len = read(s, buf, sizeof(buf)); + ssize_t len = read(s, buf, sizeof(buf)); if (len == 0) { -- cgit v1.2.3