summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_policy.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-01-07 12:34:04 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-01-08 01:58:45 +0100
commit7ac405297ec38449b30e3b05fd6bf2082fd3d803 (patch)
tree5231547e7f2ce87b368135d1dd4720431e94e088 /extensions/libxt_policy.c
parent4a1d810bb52aa5d5c450f7adcde5145d40261b54 (diff)
src: use C99/POSIX types
"u_int" was a non-standardized extension predating C99 on some platforms. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_policy.c')
-rw-r--r--extensions/libxt_policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_policy.c b/extensions/libxt_policy.c
index 3ddb3ec7..3fea1467 100644
--- a/extensions/libxt_policy.c
+++ b/extensions/libxt_policy.c
@@ -330,7 +330,7 @@ static void policy_check(unsigned int flags)
}
}
-static void print_mode(const char *prefix, u_int8_t mode, int numeric)
+static void print_mode(const char *prefix, uint8_t mode, int numeric)
{
printf("%smode ", prefix);
@@ -347,7 +347,7 @@ static void print_mode(const char *prefix, u_int8_t mode, int numeric)
}
}
-static void print_proto(const char *prefix, u_int8_t proto, int numeric)
+static void print_proto(const char *prefix, uint8_t proto, int numeric)
{
struct protoent *p = NULL;