GCC -Wall found a valid issue with a & instead of a && in the keyring DB
backend, a buffer assignment missing a cast and some unused variables in
the DB4 backend.
bool intrans)
{
struct onak_db4_dbctx *privctx = (struct onak_db4_dbctx *) dbctx->priv;
- struct openpgp_packet_list *packets = NULL;
DBT key, data;
DBC *cursor = NULL;
int ret = 0;
DBC *cursor = NULL;
DBT key, data;
int ret;
- uint64_t keyid;
int i;
int numkeys;
char *searchtext = NULL;
struct onak_db4_dbctx *privctx = (struct onak_db4_dbctx *) dbctx->priv;
DBT key, data;
DBC *cursor = NULL;
- uint64_t keyid = 0;
int ret;
int count = 0;
struct openpgp_fingerprint fingerprint;
if (index > privctx->count)
return 0;
- buf.buffer = privctx->keys[index].start;
+ buf.buffer = (char *) privctx->keys[index].start;
buf.size = privctx->keys[index].len;
buf.offset = 0;
*/
#define NEED_KEYID2UID 1
#define NEED_GETKEYSIGS 1
-#define NEED_GET_FP 1
#include "keydb.c"
static int keyring_parse_keys(struct onak_keyring_dbctx *privctx)
len += privctx->file[pos + 2];
len += 192;
len += 1; /* Header */
- } else if (len > 223 & len < 255) {
+ } else if (len > 223 && len < 255) {
// Unsupported
} else if (len == 255) {
len = privctx->file[pos + 2];