summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-09-06 20:59:39 +0000
committerjbj <devnull@localhost>1999-09-06 20:59:39 +0000
commitd753cdadf734488f5539a53e3898fd3ebc1a4508 (patch)
tree01ab000ed6d78ab035b2eaaf55199e735e141c30 /rpm.c
parentbc837d1e3f616a7dd2973f25b7ac1d18bfafcb16 (diff)
downloadrpm-d753cdadf734488f5539a53e3898fd3ebc1a4508.tar.gz
rpm-d753cdadf734488f5539a53e3898fd3ebc1a4508.tar.bz2
rpm-d753cdadf734488f5539a53e3898fd3ebc1a4508.zip
fix: don't successfully match with strncasecmp("sparc", "sparc64", 5)
CVS patchset: 3259 CVS date: 1999/09/06 20:59:39
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpm.c b/rpm.c
index 0cc594292..481bebc6d 100755
--- a/rpm.c
+++ b/rpm.c
@@ -1162,7 +1162,7 @@ int main(int argc, char ** argv)
if (!noPgp) checksigFlags |= CHECKSIG_PGP;
if (!noGpg) checksigFlags |= CHECKSIG_GPG;
if (!noMd5) checksigFlags |= CHECKSIG_MD5;
- ec = rpmCheckSig(checksigFlags, poptGetArgs(optCon));
+ ec = rpmCheckSig(checksigFlags, (const char **)poptGetArgs(optCon));
/* XXX don't overflow single byte exit status */
if (ec > 255) ec = 255;
exit(ec);
@@ -1171,7 +1171,7 @@ int main(int argc, char ** argv)
case MODE_RESIGN:
if (!poptPeekArg(optCon))
argerror(_("no packages given for signing"));
- ec = rpmReSign(addSign, passPhrase, poptGetArgs(optCon));
+ ec = rpmReSign(addSign, passPhrase, (const char **)poptGetArgs(optCon));
/* XXX don't overflow single byte exit status */
if (ec > 255) ec = 255;
exit(ec);