Use fallthrough statement attribute (moar)
This commit is contained in:
@@ -972,8 +972,8 @@ process_stream(krb5_context contextp,
|
||||
INSIST(gctx.ctx == NULL);
|
||||
|
||||
gctx.inprogress = 1;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case RPG_CONTINUE_INIT: {
|
||||
gss_name_t src_name = GSS_C_NO_NAME;
|
||||
krb5_data in;
|
||||
|
@@ -62,8 +62,8 @@ copy_type (const char *from, const char *to, const Type *t, int preserve)
|
||||
copy_primitive ("heim_integer", from, to);
|
||||
break;
|
||||
}
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case TBoolean:
|
||||
case TEnumerated :
|
||||
fprintf(codefile, "*(%s) = *(%s);\n", to, from);
|
||||
|
@@ -929,8 +929,8 @@ OM_uint32 GSSAPI_CALLCONV _gsskrb5_init_sec_context
|
||||
time_rec);
|
||||
if (ret != GSS_S_COMPLETE)
|
||||
break;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case INITIATOR_RESTART:
|
||||
ret = init_auth_restart(minor_status,
|
||||
cred,
|
||||
|
@@ -424,8 +424,8 @@ int main(int argc, char **argv)
|
||||
break;
|
||||
case 'h':
|
||||
s_exit_code = EXIT_SUCCESS;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
default:
|
||||
s_usage(argv[0]);
|
||||
}
|
||||
|
@@ -2438,12 +2438,12 @@ hx509_verify_path(hx509_context context,
|
||||
* EE checking below.
|
||||
*/
|
||||
type = EE_CERT;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
}
|
||||
fallthrough
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case EE_CERT:
|
||||
/*
|
||||
* If there where any proxy certificates in the chain
|
||||
|
@@ -182,8 +182,8 @@ fill_CMSIdentifier(const hx509_cert cert,
|
||||
&id->u.subjectKeyIdentifier);
|
||||
if (ret == 0)
|
||||
break;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case CMS_ID_NAME: {
|
||||
hx509_name name;
|
||||
|
||||
|
@@ -230,8 +230,8 @@ hx509_pem_read(hx509_context context,
|
||||
where = INDATA;
|
||||
goto indata;
|
||||
}
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case INHEADER:
|
||||
if (buf[0] == '\0') {
|
||||
where = INDATA;
|
||||
|
@@ -209,8 +209,8 @@ _kafs_derive_des_key(krb5_enctype enctype, void *keydata, size_t keylen,
|
||||
ret = compress_parity_bits(keydata, &keylen);
|
||||
if (ret)
|
||||
return ret;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
default:
|
||||
if (enctype < 0)
|
||||
return KRB5_PROG_ETYPE_NOSUPP;
|
||||
|
@@ -1192,8 +1192,8 @@ krb5_sendto_context(krb5_context context,
|
||||
break;
|
||||
}
|
||||
action = KRB5_SENDTO_KRBHST;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case KRB5_SENDTO_KRBHST:
|
||||
if (ctx->krbhst == NULL) {
|
||||
ret = krb5_krbhst_init_flags(context, realm, type,
|
||||
@@ -1215,8 +1215,8 @@ krb5_sendto_context(krb5_context context,
|
||||
handle = heim_retain(ctx->krbhst);
|
||||
}
|
||||
action = KRB5_SENDTO_TIMEOUT;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case KRB5_SENDTO_TIMEOUT:
|
||||
|
||||
/*
|
||||
|
@@ -472,6 +472,7 @@ heim_digest_generate_challenge(heim_digest_t context)
|
||||
case HEIM_DIGEST_TYPE_AUTO:
|
||||
context->type = HEIM_DIGEST_TYPE_RFC2831;
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case HEIM_DIGEST_TYPE_RFC2831:
|
||||
asprintf(&challenge, "realm=\"%s\",nonce=\"%s\",qop=\"%s\",algorithm=md5-sess,charset=utf-8,maxbuf=%s",
|
||||
context->serverRealm, context->serverNonce, context->serverQOP, context->serverMaxbuf);
|
||||
|
@@ -129,8 +129,8 @@ rk_fnmatch(const char *pattern, const char *string, int flags)
|
||||
--pattern;
|
||||
}
|
||||
}
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
default:
|
||||
if (c != *string++)
|
||||
return (FNM_NOMATCH);
|
||||
|
@@ -136,8 +136,8 @@ roken_get_homedir(char *home, size_t homesz)
|
||||
}
|
||||
return home;
|
||||
}
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
#else
|
||||
#ifdef HAVE_GETPWNAM_R
|
||||
size_t buflen = 2048;
|
||||
|
@@ -515,8 +515,8 @@ xyzprintf (struct snprintf_state *state, const char *char_format, va_list ap)
|
||||
}
|
||||
case '\0' :
|
||||
--format;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case '%' :
|
||||
(*state->append_char)(state, c);
|
||||
++len;
|
||||
|
@@ -377,8 +377,8 @@ strftime (char *buf, size_t maxsize, const char *format,
|
||||
break;
|
||||
case '\0' :
|
||||
--format;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case '%' :
|
||||
ret = snprintf (buf, maxsize - n,
|
||||
"%%");
|
||||
|
@@ -424,8 +424,8 @@ strptime (const char *buf, const char *format, struct tm *timeptr)
|
||||
abort ();
|
||||
case '\0' :
|
||||
--format;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case '%' :
|
||||
if (*buf == '%')
|
||||
++buf;
|
||||
|
@@ -205,22 +205,24 @@ wind_ucs4utf8(const uint32_t *in, size_t in_len, char *out, size_t *out_len)
|
||||
case 4:
|
||||
out[3] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case 3:
|
||||
out[2] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case 2:
|
||||
out[1] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case 1:
|
||||
out[0] = ch | first_char[len - 1];
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
out += len;
|
||||
@@ -488,17 +490,19 @@ wind_ucs2utf8(const uint16_t *in, size_t in_len, char *out, size_t *out_len)
|
||||
case 3:
|
||||
out[2] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case 2:
|
||||
out[1] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
case 1:
|
||||
out[0] = ch | first_char[len - 1];
|
||||
fallthrough
|
||||
/* FALLTHROUGH */
|
||||
fallthrough
|
||||
default:
|
||||
break;
|
||||
}
|
||||
out += len;
|
||||
}
|
||||
|
Reference in New Issue
Block a user