Commit 466985b5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More unreachable code

parent 761905d4
......@@ -830,14 +830,12 @@ receive_frame(void *priv)
return (NULL);
}
#define STRTOU32(n, s, p, v, c) \
do { \
n = strtoul(s, &p, 0); \
if (*p != '\0') { \
vtc_fatal(v, "%s takes an integer as argument" \
"(found %s)", c, s); \
WRONG("Couldn't convert to integer");\
} \
#define STRTOU32(n, s, p, v, c) \
do { \
n = strtoul(s, &p, 0); \
if (*p != '\0') \
vtc_fatal(v, "%s takes an integer as argument" \
"(found %s)", c, s); \
} while (0)
#define STRTOU32_CHECK(n, sp, p, v, c, l) \
......@@ -851,7 +849,7 @@ do { \
} while (0)
#define CHECK_LAST_FRAME(TYPE) \
if (!f || f->type != TYPE_ ## TYPE) { \
if (!f || f->type != TYPE_ ## TYPE) { \
vtc_fatal(s->hp->vl, "Last frame was not of type " #TYPE); \
}
......
......@@ -578,7 +578,7 @@ cmd_logexpect(CMD_ARGS)
if (av[1] == NULL)
vtc_fatal(le->vl, "Missing -g argument");
le->g_arg = VSLQ_Name2Grouping(av[1], strlen(av[1]));
if (le->g_arg < 0)
if (le->g_arg < 0)
vtc_fatal(le->vl, "Unknown grouping '%s'",
av[1]);
av++;
......
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