From 047f37b1d5d865084a435fd7594b8c5c332ccb8d Mon Sep 17 00:00:00 2001 From: Felix Janda Date: Sat, 16 May 2015 10:31:24 +0200 Subject: src: Use stdint types Signed-off-by: Felix Janda Signed-off-by: Pablo Neira Ayuso --- include/arptables.h | 7 ++++--- include/libarptc/libarptc.h | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/arptables.h b/include/arptables.h index 82e6e9a..34f53c1 100644 --- a/include/arptables.h +++ b/include/arptables.h @@ -1,6 +1,7 @@ #ifndef _ARPTABLES_USER_H #define _ARPTABLES_USER_H +#include #include "arptables_common.h" #include "libarptc/libarptc.h" @@ -33,7 +34,7 @@ struct arptables_match size_t userspacesize; /* Revision of target (0 by default). */ - u_int8_t revision; + uint8_t revision; /* Function which prints out usage message. */ void (*help)(void); @@ -85,7 +86,7 @@ struct arptables_target size_t userspacesize; /* Revision of target (0 by default). */ - u_int8_t revision; + uint8_t revision; /* Function which prints out usage message. */ void (*help)(void); @@ -132,7 +133,7 @@ extern char *mask_to_dotted(const struct in_addr *mask); extern void parse_hostnetworkmask(const char *name, struct in_addr **addrpp, struct in_addr *maskp, unsigned int *naddrs); -extern u_int16_t parse_protocol(const char *s); +extern uint16_t parse_protocol(const char *s); extern int do_command(int argc, char *argv[], char **table, arptc_handle_t *handle); diff --git a/include/libarptc/libarptc.h b/include/libarptc/libarptc.h index ff4606f..18e8bb0 100644 --- a/include/libarptc/libarptc.h +++ b/include/libarptc/libarptc.h @@ -7,9 +7,10 @@ #include #ifndef ARPT_MIN_ALIGN -/* arpt_entry has pointers and u_int64_t's in it, so if you align to - it, you'll also align to any crazy matches and targets someone - might write */ +/* arpt_entry has pointers and uint64_t's in it, so if you align to + * it, you'll also align to any crazy matches and targets someone + * might write. + */ #define ARPT_MIN_ALIGN (__alignof__(struct arpt_entry)) #endif -- cgit v1.2.3