Clang generates a warning if there is a function declaration/definition
with zero arguments. Such declarations/definitions without a prototype (an
argument list) are deprecated forms of indefinite arguments
("-Wdeprecated-non-prototype"). On the default configuration, it causes a
build failure (unless "--disable-werror" is specified).
This commit replaces () with (void) to avoid this warning.
#ifdef ERRINJ
void
-errinj()
+errinj (void)
{
int err;
}
void
-errinjstart()
+errinjstart (void)
{
if (errper) event(errinj, 0, (random()%errper));
}
#if 0 /* apparently not used */
void
-stop_event()
+stop_event(void)
{
}
#endif