From: Frank Ch. Eigler Date: Tue, 4 Jun 2024 15:17:17 +0000 (-0400) Subject: debuginfod-client tweak for alma buildbot X-Git-Tag: elfutils-0.192~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b55ee2535c396131ffe2b043797e2be94e20dfa9;p=thirdparty%2Felfutils.git debuginfod-client tweak for alma buildbot Tweak a switch/case statement for gcc8 compatibility. Signed-off-by: Frank Ch. Eigler --- diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c index 3d6f8d8c..95f2a92b 100644 --- a/debuginfod/debuginfod-client.c +++ b/debuginfod/debuginfod-client.c @@ -1478,16 +1478,18 @@ get_signature_params(debuginfod_client *c, unsigned char *bin_sig) switch (bin_sig[1]) { case DIGSIG_VERSION_2: - struct signature_v2_hdr hdr_v2; - memcpy(& hdr_v2, & bin_sig[1], sizeof(struct signature_v2_hdr)); - hashalgo = hdr_v2.hash_algo; - break; + { + struct signature_v2_hdr hdr_v2; + memcpy(& hdr_v2, & bin_sig[1], sizeof(struct signature_v2_hdr)); + hashalgo = hdr_v2.hash_algo; + break; + } default: if (c->verbose_fd >= 0) dprintf (c->verbose_fd, "Unknown ima signature version %d\n", (int)bin_sig[1]); return NULL; } - + switch (hashalgo) { case PKEY_HASH_SHA1: return "sha1";