From ecec669bf5c4a4b168f6dbcd8c140a83c43834e9 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 26 Apr 2021 10:30:15 -0700 Subject: [PATCH] fix return to return false, not -1... --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index de948a8..7ac723d 100644 --- a/main.c +++ b/main.c @@ -98,7 +98,7 @@ hexdecode(char *buf, size_t len, uint8_t *out) uint8_t topchr, botchr; if (len % 2) - return -1; + return false; /* NB: only needed to silence a bad gcc warning */ topchr = -1;