Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve the autoconf warning for broken readdir
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
4e43d33
..
1186740
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-164,7
+164,7
@@
static int readfd(int fd,char *buffer,int N)
}
}
-int read_int(int f)
+int
32
read_int(int f)
{
int ret;
char b[4];
{
int ret;
char b[4];
@@
-185,7
+185,7
@@
int64 read_longint(int f)
char b[8];
ret = read_int(f);
char b[8];
ret = read_int(f);
- if (
ret != -1
) return ret;
+ if (
(int32)ret != (int32)0xffffffff
) return ret;
#ifdef NO_INT64
fprintf(FERROR,"Integer overflow - attempted 64 bit offset\n");
#ifdef NO_INT64
fprintf(FERROR,"Integer overflow - attempted 64 bit offset\n");
@@
-376,7
+376,7
@@
static int writefd(int fd,char *buf,int len)
-void write_int(int f,int x)
+void write_int(int f,int
32
x)
{
int ret;
char b[4];
{
int ret;
char b[4];