2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Minor style cleanups.

Remove extraneous break after return statement.
Convert two old K&R function declarations.
This commit is contained in:
Todd C. Miller
2019-12-13 19:27:38 -07:00
parent 718e6997fc
commit 3ec23ad5e1
3 changed files with 2 additions and 10 deletions

View File

@@ -56,16 +56,12 @@ sudo_digest_type_to_gcry(int digest_type)
switch (digest_type) {
case SUDO_DIGEST_SHA224:
return GCRY_MD_SHA224;
break;
case SUDO_DIGEST_SHA256:
return GCRY_MD_SHA256;
break;
case SUDO_DIGEST_SHA384:
return GCRY_MD_SHA384;
break;
case SUDO_DIGEST_SHA512:
return GCRY_MD_SHA512;
break;
default:
return -1;
}