diff options
author | Martin Pool <mbp@samba.org> | 2002-01-24 08:08:56 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-24 08:08:56 +0000 |
commit | 55d9e0fadacbc50a8758297c1d6ccfcf2fe9a867 (patch) | |
tree | 350a566fb3e717c5bd295e4bf684fab6aa73d7c7 | |
parent | 929e3011c6fe8475c80708275086a86a189ee25f (diff) | |
download | rsync-55d9e0fadacbc50a8758297c1d6ccfcf2fe9a867.tar.gz |
write_batch_csums_file: Opaque IO buffers should be void*.
-rw-r--r-- | batch.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -354,7 +354,7 @@ void read_batch_flist_info(struct file_struct **fptr) } } -void write_batch_csums_file(char *buff, int bytes_to_write) +void write_batch_csums_file(void *buff, int bytes_to_write) { static int fdb_open = 1; @@ -404,16 +404,15 @@ void write_batch_csum_info(int *flist_entry, int flist_count, /* Write csum info to batch file */ /* FIXME: This will break if s->count is ever not exactly an int. */ - write_batch_csums_file((char *) flist_entry, sizeof(int)); + write_batch_csums_file(flist_entry, sizeof(int)); if (s) - write_batch_csums_file((char *) &s->count, sizeof(int)); + write_batch_csums_file(&s->count, sizeof(int)); else - write_batch_csums_file((char *) &int_zero, sizeof (int)); + write_batch_csums_file(&int_zero, sizeof (int)); if (s) { for (i = 0; i < s->count; i++) { - write_batch_csums_file((char *) &s->sums[i].sum1, - sizeof(uint32)); + write_batch_csums_file(&s->sums[i].sum1, sizeof(uint32)); if ((*flist_entry == flist_count - 1) && (i == s->count - 1)) { fdb_close = 1; |