diff options
author | Frank Ch. Eigler <[email protected]> | 2024-06-04 11:17:17 -0400 |
---|---|---|
committer | Frank Ch. Eigler <[email protected]> | 2024-06-04 11:17:17 -0400 |
commit | b55ee2535c396131ffe2b043797e2be94e20dfa9 (patch) | |
tree | aa95e6ff29ebc5f6151e24a3e46f399ee8cc8ba9 /debuginfod | |
parent | d47d93b1049ecfad2f9bb9db30dc630c3d6131ca (diff) |
debuginfod-client tweak for alma buildbot
Tweak a switch/case statement for gcc8 compatibility.
Signed-off-by: Frank Ch. Eigler <[email protected]>
Diffstat (limited to 'debuginfod')
-rw-r--r-- | debuginfod/debuginfod-client.c | 12 |
1 files changed, 7 insertions, 5 deletions
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"; |