search for: write_char_buf

Displaying 4 results from an estimated 4 matches for "write_char_buf".

Did you mean: write_char_bufs
2002 Jan 13
1
rsynd-2.5.1 / batch.c patch
...ruct file_list *batch_flist; -void create_batch_file_ext() +void create_batch_file_ext(void) { struct tm *timeptr; time_t elapsed_seconds; @@ -103,7 +104,7 @@ if (i == flist_count - 1) { fdb_close = 1; } - write_char_bufs(fptr[i]->sum); + write_char_bufs((char *)fptr[i]->sum); } } @@ -175,7 +176,7 @@ close(fdb); } -struct file_list *create_flist_from_batch() +struct file_list *create_flist_from_batch(void) { unsigned char flags; @@ -261,7 +262,7 @@ re...
2002 Feb 11
0
RSYNC 2.5.2 type mismatches in batch.c
...ruct file_list *batch_flist; -void create_batch_file_ext() +void create_batch_file_ext(void) { struct tm *timeptr; time_t elapsed_seconds; @@ -108,7 +109,7 @@ if (i == flist_count - 1) { fdb_close = 1; } - write_char_bufs(fptr[i]->sum); + write_char_bufs((char *)fptr[i]->sum); } } @@ -184,7 +185,7 @@ close(fdb); } -struct file_list *create_flist_from_batch() +struct file_list *create_flist_from_batch(void) { unsigned char flags; @@ -270,7 +271,7 @@ re...
2002 Feb 07
1
Latest version of the batch mode cleanup patch
...11 @@ if (write(fdb, buff, bytes_to_write) == -1) { rprintf(FERROR, "Batch file %s write error: %s\n", - rsync_flist_file, strerror(errno)); + filename, strerror(errno)); close(fdb); exit_cleanup(1); } - if (fdb_close) { close(fdb); } @@ -110,7 +92,6 @@ } write_char_bufs(fptr[i]->sum); } - } void write_char_bufs(char *buf) @@ -118,11 +99,8 @@ /* Write the size of the string which will follow */ char b[4]; - if (buf != NULL) - SIVAL(b, 0, strlen(buf)); - else { - SIVAL(b, 0, 0); - } + + SIVAL(b, 0, buf != NULL ? strlen(buf) : 0); write_batch_f...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch? Thanks for the reminder. I've just committed Jos's rsync+ patch onto the "branch_mbp_rsyncplus_merge" branch. If it works OK and nobody screams I will move it across onto the main tree tomorrow or Wednesday. I see the patch doesn't add documentation about the new options to the man page, so we should fix that in the future.