asn1: Fix warnings in asn1_print

This commit is contained in:
Nicolas Williams
2021-03-03 23:28:49 -06:00
parent 4eff66a2cd
commit 1d2bfd6179

View File

@@ -353,7 +353,7 @@ type_cmp(const void *va, const void *vb)
static int static int
dotype(unsigned char *buf, size_t len, char **argv, size_t *size) dotype(unsigned char *buf, size_t len, char **argv, size_t *size)
{ {
const char *typename; const char *typename = "";
size_t matches = 0; size_t matches = 0;
size_t sz; size_t sz;
size_t i = 0; size_t i = 0;
@@ -377,7 +377,7 @@ dotype(unsigned char *buf, size_t len, char **argv, size_t *size)
} else { } else {
size_t right = sizeof(types)/sizeof(types[0]) - 1; size_t right = sizeof(types)/sizeof(types[0]) - 1;
size_t left = 0; size_t left = 0;
size_t mid; size_t mid = (left + right) >> 1;
int c = -1; int c = -1;
while (left <= right) { while (left <= right) {