Commit 338550ed authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

FlexeLinting: Default is always last in switch, and there is one.

parent 4b695858
......@@ -725,8 +725,8 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
"Incomplete code in %s(), %s line %d:\n",
func, file, line);
break;
default:
case VAS_ASSERT:
default:
VSB_printf(pan_vsb,
"Assert error in %s(), %s line %d:\n"
" Condition(%s) not true.\n",
......
......@@ -126,9 +126,6 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin,
h_date = VTIM_parse(p);
switch (http_GetStatus(hp)) {
default:
*ttl = -1.;
break;
case 302: /* Moved Temporarily */
case 307: /* Temporary Redirect */
/*
......@@ -192,7 +189,10 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin,
*/
*ttl = (int)(h_expires - h_date);
}
break;
default:
*ttl = -1.;
break;
}
/*
......
......@@ -691,7 +691,8 @@ MCF_InitParams(struct cli *cli)
/*--------------------------------------------------------------------*/
void
MCF_ParamConf(enum mcf_which_e which, const char *param, const char *fmt, ...)
MCF_ParamConf(enum mcf_which_e which, const char * const param,
const char *fmt, ...)
{
struct parspec *pp;
struct vsb *vsb;
......@@ -718,6 +719,8 @@ MCF_ParamConf(enum mcf_which_e which, const char *param, const char *fmt, ...)
pp->max = strdup(VSB_data(vsb));
AN(pp->max);
break;
default:
WRONG("bad 'which'");
}
VSB_delete(vsb);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment