Fixed some warnings reported by clang.
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user