summaryrefslogtreecommitdiff
path: root/attach.c
diff options
context:
space:
mode:
authorNed T. Crigler <crigler@users.sourceforge.net>2012-07-01 21:26:10 +0000
committerNed T. Crigler <crigler@users.sourceforge.net>2012-07-01 21:26:10 +0000
commitaeb60e6d041cf1995233f5cb6af64fa880200e84 (patch)
tree04ef3508e69162990539af576cb43fb85f960ea1 /attach.c
parent637bafd129d781516f9b1efbccd326484efecdb3 (diff)
Use ssize_t for the return type of read/write instead of int.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c2
1 files changed, 1 insertions, 1 deletions
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)
{