domd5() buffer signedness fixes.

This commit is contained in:
Panu Matilainen 2007-07-11 13:48:43 +03:00
parent 40e8f62678
commit f0a178f128
2 changed files with 2 additions and 2 deletions

View File

@ -1297,7 +1297,7 @@ static void genCpioListAndHeader(/*@partial@*/ FileList fl,
buf[0] = '\0';
if (S_ISREG(flp->fl_mode))
(void) domd5(flp->diskURL, buf, 1, NULL);
(void) domd5(flp->diskURL, (unsigned char *)buf, 1, NULL);
s = buf;
(void) headerAddOrAppendEntry(h, RPMTAG_FILEMD5S, RPM_STRING_ARRAY_TYPE,
&s, 1);

View File

@ -645,7 +645,7 @@ assert(otherFi != NULL);
}
/* Here is a pre-existing modified config file that needs saving. */
{ char md5sum[50];
{ unsigned char md5sum[50];
const unsigned char * MD5 = rpmfiMD5(fi);
if (!domd5(fn, md5sum, 0, NULL) && memcmp(MD5, md5sum, 16)) {
fi->actions[i] = FA_BACKUP;