summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-29 05:48:11 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-29 05:48:11 +0000
commitd730b113f4608a952f7d6ad6efc35a7cb11be18c (patch)
tree800957825e04f73e5169a33d8673993312d0dc33 /io.c
parent7ae359c331afedbab7a9d572cf78495b2bf92dbf (diff)
downloadrsync-d730b113f4608a952f7d6ad6efc35a7cb11be18c.tar.gz
final change needed to get rsync working on a CRAY J90
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/io.c b/io.c
index aafaeb36..9f6b2280 100644
--- a/io.c
+++ b/io.c
@@ -270,8 +270,12 @@ static void readfd(int fd,char *buffer,int N)
int32 read_int(int f)
{
char b[4];
+ int32 ret;
+
readfd(f,b,4);
- return IVAL(b,0);
+ ret = IVAL(b,0);
+ if (ret == (int32)0xffffffff) return -1;
+ return ret;
}
int64 read_longint(int f)