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
Changed the *_abbbrevint() functions to *_varint().
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
eecab20
..
2557440
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-998,7
+998,7
@@
unsigned short read_shortint(int f)
return (UVAL(b, 1) << 8) + UVAL(b, 0);
}
return (UVAL(b, 1) << 8) + UVAL(b, 0);
}
-int32 read_
abbrev
int(int f)
+int32 read_
var
int(int f)
{
int32 num;
char b[5];
{
int32 num;
char b[5];
@@
-1404,7
+1404,7
@@
void write_shortint(int f, unsigned short x)
writefd(f, b, 2);
}
writefd(f, b, 2);
}
-void write_
abbrev
int(int f, int32 x)
+void write_
var
int(int f, int32 x)
{
char b[5];
if ((uint32)x < ((uint32)1<<(1*8-1))) {
{
char b[5];
if ((uint32)x < ((uint32)1<<(1*8-1))) {