[pacman-dev] Aqpm, and some help needed

Aaron Griffin aaronmgriffin at gmail.com
Mon Dec 29 11:24:22 EST 2008


On Sat, Dec 27, 2008 at 1:34 PM, Dario Freddi <drf54321 at gmail.com> wrote:
> On Saturday 27 December 2008 19:29:31 Xavier wrote:
>>
>> One funny thing I noticed is that the call is the following :
>> handle->dlcb(filename, dl_thisfile, ust.size);
>> with dl_thisfile size_t and ust.size off_t
>> and the type of the function is this :
>> typedef void (*alpm_cb_download)(const char *filename,
>> off_t xfered, off_t total);
>>
>> So we have a type mismatch for the xfered parameter, but not for the
>> total parameter. Yet you only have problems with total :P So it is
>> probably not the problem, but it is still something worth playing
>> with.
>
> Ok, after having a small round with it I found out that types are not
> compatible, so this have to be played into libalpm. I think this could be the
> only issue, since back in the days, when the function had standard types,
> everything worked. I'll try again, expect a patch in the case

To clarify something - I'm fairly certain off_t is specified in the C
standard, so this function _still_ has standard types


More information about the pacman-dev mailing list