diff --git a/tools/regression/sbin/dhclient/fake.c b/tools/regression/sbin/dhclient/fake.c index 91d57b684b8..c204d49402c 100644 --- a/tools/regression/sbin/dhclient/fake.c +++ b/tools/regression/sbin/dhclient/fake.c @@ -32,7 +32,11 @@ warning(char *fmt, ...) va_end(ap); fprintf(stderr, "\n"); - return ret; + /* + * The original warning() would return "ret" here. We do this to + * check warnings explicitely. + */ + longjmp(env, 1); } int