Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
librsync
> librsync-0.9.7-strictalias.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File librsync-0.9.7-strictalias.diff of Package librsync
diff -uNr librsync-0.9.6/netint.c librsync-0.9.6.strictalias/netint.c --- librsync-0.9.6/netint.c 2003-08-05 10:28:21.000000000 +0200 +++ librsync-0.9.6.strictalias/netint.c 2004-02-06 19:36:59.000000000 +0100 @@ -121,7 +121,7 @@ rs_result rs_suck_netint(rs_job_t *job, rs_long_t *v, int len) { - unsigned char *buf; + void *buf; int i; rs_result result; @@ -130,13 +130,13 @@ return RS_INTERNAL_ERROR; } - if ((result = rs_scoop_read(job, len, (void **) &buf)) != RS_DONE) + if ((result = rs_scoop_read(job, len, &buf)) != RS_DONE) return result; *v = 0; for (i = 0; i < len; i++) { - *v = *v<<8 | buf[i]; + *v = *v<<8 | ((unsigned char*)buf)[i]; } return RS_DONE; diff -uNr librsync-0.9.6/readsums.c librsync-0.9.6.strictalias/readsums.c --- librsync-0.9.6/readsums.c 2003-07-22 16:35:08.000000000 +0200 +++ librsync-0.9.6.strictalias/readsums.c 2004-02-06 19:37:41.000000000 +0100 @@ -111,15 +111,15 @@ static rs_result rs_loadsig_s_strong(rs_job_t *job) { rs_result result; - rs_strong_sum_t *strongsum; + void *strongsum; result = rs_scoop_read(job, job->signature->strong_sum_len, - (void **) &strongsum); + &strongsum); if (result != RS_DONE) return result; job->statefn = rs_loadsig_s_weak; - return rs_loadsig_add_sum(job, strongsum); + return rs_loadsig_add_sum(job, (rs_strong_sum_t*)strongsum); }