Commit 808ffdd2 authored by Alessandro Rubini's avatar Alessandro Rubini

pfilter: trivial: apply bits from be2bd234 (cleanup of prototypes)

This just adds "void" in prototypes. I did the pfilter on a different
branch, and lost these changes of commit be2bd234 wyhile moving pfilter
generation to tools/
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f60f33c5
......@@ -173,12 +173,12 @@ int v3[0 - ((int)FRAME_FOR_CPU > R_22)];
/* begins assembling a new packet filter program */
static void pfilter_new()
static void pfilter_new(void)
{
code_pos = 0;
}
static void check_size()
static void check_size(void)
{
if (code_pos == PFILTER_MAX_CODE_SIZE - 1) {
fprintf(stderr, "%s: microcode too big (max size: %d)\n",
......@@ -224,7 +224,7 @@ static void pfilter_cmp(int offset, int value, int mask, pfilter_op_t op,
code_buf[code_pos++] = ir;
}
static void pfilter_nop()
static void pfilter_nop(void)
{
uint64_t ir;
check_size();
......
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