...but require an exact 1 for nodigest in rpmfiArchiveReadToFile()

- This way we can change the argument into a flag bitfield later
  on without it being an API change.
This commit is contained in:
Panu Matilainen 2013-11-21 14:48:01 +02:00
parent 5a928ec372
commit 8b06737db1
2 changed files with 2 additions and 2 deletions

View File

@ -1198,7 +1198,7 @@ int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files, FD_t cfd,
struct stat * st = &fsm->sb; struct stat * st = &fsm->sb;
int saveerrno = errno; int saveerrno = errno;
int rc = 0; int rc = 0;
int nodigest = (rpmtsFlags(ts) & RPMTRANS_FLAG_NOFILEDIGEST); int nodigest = (rpmtsFlags(ts) & RPMTRANS_FLAG_NOFILEDIGEST) ? 1 : 0;
int fc = rpmfiFC(fi); int fc = rpmfiFC(fi);
const int * hardlinks; const int * hardlinks;
int numHardlinks; int numHardlinks;

View File

@ -265,7 +265,7 @@ size_t rpmfiArchiveRead(rpmfi fi, void * buf, size_t size);
* Write content from current file in archive to a file * Write content from current file in archive to a file
* @param fi file info * @param fi file info
* @param fd file descriptor of file to write to * @param fd file descriptor of file to write to
* @param nodigest ommit checksum check if > 0 * @param nodigest omit checksum check if 1
* @return > 0 on error * @return > 0 on error
*/ */
int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest); int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest);