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, ...@@ -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", "Incomplete code in %s(), %s line %d:\n",
func, file, line); func, file, line);
break; break;
default:
case VAS_ASSERT: case VAS_ASSERT:
default:
VSB_printf(pan_vsb, VSB_printf(pan_vsb,
"Assert error in %s(), %s line %d:\n" "Assert error in %s(), %s line %d:\n"
" Condition(%s) not true.\n", " Condition(%s) not true.\n",
......
...@@ -126,9 +126,6 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin, ...@@ -126,9 +126,6 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin,
h_date = VTIM_parse(p); h_date = VTIM_parse(p);
switch (http_GetStatus(hp)) { switch (http_GetStatus(hp)) {
default:
*ttl = -1.;
break;
case 302: /* Moved Temporarily */ case 302: /* Moved Temporarily */
case 307: /* Temporary Redirect */ case 307: /* Temporary Redirect */
/* /*
...@@ -192,7 +189,10 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin, ...@@ -192,7 +189,10 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin,
*/ */
*ttl = (int)(h_expires - h_date); *ttl = (int)(h_expires - h_date);
} }
break;
default:
*ttl = -1.;
break;
} }
/* /*
......
...@@ -691,7 +691,8 @@ MCF_InitParams(struct cli *cli) ...@@ -691,7 +691,8 @@ MCF_InitParams(struct cli *cli)
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
void 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 parspec *pp;
struct vsb *vsb; struct vsb *vsb;
...@@ -718,6 +719,8 @@ MCF_ParamConf(enum mcf_which_e which, const char *param, const char *fmt, ...) ...@@ -718,6 +719,8 @@ MCF_ParamConf(enum mcf_which_e which, const char *param, const char *fmt, ...)
pp->max = strdup(VSB_data(vsb)); pp->max = strdup(VSB_data(vsb));
AN(pp->max); AN(pp->max);
break; break;
default:
WRONG("bad 'which'");
} }
VSB_delete(vsb); 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