X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4ea4acf17ba245e64a0d549e030fa9def99750ea..112d728f4858fef5c75e0b25bf6f02af8aa5b83c:/io.c diff --git a/io.c b/io.c index 79fb7e93..05a755fb 100644 --- a/io.c +++ b/io.c @@ -342,13 +342,13 @@ void increment_active_files(int ndx, int itemizing, enum logcode code) } active_filecnt++; - active_bytecnt += the_file_list->files[ndx]->length; + active_bytecnt += F_LENGTH(the_file_list->files[ndx]); } void decrement_active_files(int ndx) { active_filecnt--; - active_bytecnt -= the_file_list->files[ndx]->length; + active_bytecnt -= F_LENGTH(the_file_list->files[ndx]); } /* Try to push messages off the list onto the wire. If we leave with more @@ -405,6 +405,13 @@ int send_msg(enum msgcode code, const char *buf, int len) return 1; } +void send_msg_int(enum msgcode code, int num) +{ + char numbuf[4]; + SIVAL(numbuf, 0, num); + send_msg(code, numbuf, 4); +} + int get_redo_num(int itemizing, enum logcode code) { while (1) {