condition: use appropriate types and return values

This commit is contained in:
Jan Engelhardt
2008-04-02 04:51:17 +02:00
parent 317a944fec
commit 586353342f
2 changed files with 17 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
/* Shared library add-on to iptables for condition match */
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -38,10 +39,10 @@ static int condition_parse(int c, char **argv, int invert, unsigned int *flags,
info->invert = invert;
*flags = 1;
return 1;
return true;
}
return 0;
return false;
}
static void condition_check(unsigned int flags)