diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-08-07 09:52:55 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-08-08 15:03:28 +0200 |
commit | 125aab3c0ac4b7e6eadfd6974fb877fd874a358d (patch) | |
tree | 36684d871d6dd7182d5bf4b9921d1e14cc8507b7 /lib/nettle/pk.c | |
parent | fa122d8149f1058e135bdcb31a7306a70093352d (diff) | |
download | gnutls-125aab3c0ac4b7e6eadfd6974fb877fd874a358d.tar.gz |
use a consistent method to mark fall-through in switch cases
Also document that method in contribution guide.
Resolves #306
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/nettle/pk.c')
-rw-r--r-- | lib/nettle/pk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index bfcafa926c..6dcd2fdd08 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -1724,7 +1724,7 @@ gnutls_x509_spki_st spki; free(sig.data); sig.data = NULL; - /* fallthrough */ + FALLTHROUGH; case GNUTLS_PK_EC: /* we only do keys for ECDSA */ case GNUTLS_PK_EDDSA_ED25519: case GNUTLS_PK_DSA: @@ -1839,7 +1839,7 @@ wrap_nettle_pk_generate_keys(gnutls_pk_algorithm_t algo, break; } #endif - /* fallthrough */ + FALLTHROUGH; case GNUTLS_PK_DH: { struct dsa_params pub; |