Use a plain old int for rpmfiArchiveReadToFile() nodigest argument
- There's no benefit to using char here, and int is what is generally used for such (flag-type) arguments. - As it happens char doesn't even work here as the nodigest argument passed from fsm is not a simple 0/1 value but result of (rpmtsFlags(ts) & RPMTRANS_FLAG_NOFILEDIGEST), which when crammed into a char actually turns into a zero... so this unbreaks --nofiledigest
This commit is contained in:
parent
b2cf1471bb
commit
5a928ec372
|
@ -1799,7 +1799,7 @@ size_t rpmfiArchiveRead(rpmfi fi, void * buf, size_t size)
|
|||
return rpmcpioRead(fi->archive, buf, size);
|
||||
}
|
||||
|
||||
int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, char nodigest)
|
||||
int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest)
|
||||
{
|
||||
if (fi == NULL || fi->archive == NULL || fd == NULL)
|
||||
return -1;
|
||||
|
|
|
@ -268,7 +268,7 @@ size_t rpmfiArchiveRead(rpmfi fi, void * buf, size_t size);
|
|||
* @param nodigest ommit checksum check if > 0
|
||||
* @return > 0 on error
|
||||
*/
|
||||
int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, char nodigest);
|
||||
int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue