Fixed some warnings reported by clang.

This commit is contained in:
Juan RP
2014-04-20 10:02:54 +02:00
parent ada3483acc
commit dacbb2f22f
8 changed files with 23 additions and 14 deletions

View File

@@ -280,7 +280,6 @@ xbps_init(struct xbps_handle *xhp)
xbps_dbg_printf(xhp, "failed to read configuration file %s: %s\n",
xhp->conffile, strerror(rv));
xbps_dbg_printf(xhp, "Using built-in defaults\n");
rv = 0;
}
/* Set rootdir */
if (xhp->rootdir[0] == '\0') {

View File

@@ -124,7 +124,7 @@ xbps_pubkey2fp(struct xbps_handle *xhp, xbps_data_t pubkey)
memcpy(pEncoding, pSshHeader, 11);
index = SshEncodeBuffer(&pEncoding[11], eLen, eBytes);
index = SshEncodeBuffer(&pEncoding[11 + index], nLen, nBytes);
(void)SshEncodeBuffer(&pEncoding[11 + index], nLen, nBytes);
/*
* Compute the RSA fingerprint (MD5).