Changed the *_abbbrevint() functions to *_varint().
[rsync/rsync.git] / io.c
diff --git a/io.c b/io.c
index 6abaab2..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);
 }
 
-int32 read_abbrevint(int f)
+int32 read_varint(int f)
 {
        int32 num;
        char b[5];
@@ -1159,7 +1159,7 @@ void read_sum_head(int f, struct sum_struct *sum)
                exit_cleanup(RERR_PROTOCOL);
        }
        sum->s2length = protocol_version < 27 ? csum_length : (int)read_int(f);
-       if (sum->s2length < 0 || sum->s2length > MD4_SUM_LENGTH) {
+       if (sum->s2length < 0 || sum->s2length > MAX_DIGEST_LEN) {
                rprintf(FERROR, "Invalid checksum length %d [%s]\n",
                        sum->s2length, who_am_i());
                exit_cleanup(RERR_PROTOCOL);
@@ -1404,7 +1404,7 @@ void write_shortint(int f, unsigned short x)
        writefd(f, b, 2);
 }
 
-void write_abbrevint(int f, int32 x)
+void write_varint(int f, int32 x)
 {
        char b[5];
        if ((uint32)x < ((uint32)1<<(1*8-1))) {