diff mbox

[ebtables,1/2] extensions: Use stdint types

Message ID 20150516102239.GI14201@euler
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Felix Janda May 16, 2015, 10:22 a.m. UTC
Signed-off-by: Felix Janda <felix.janda@posteo.de>
---
 extensions/ebt_ip6.c   |  4 ++--
 extensions/ebt_limit.c | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

Comments

Pablo Neira Ayuso May 21, 2015, 12:59 p.m. UTC | #1
Small series for ebtables, also applied, thanks.

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/extensions/ebt_ip6.c b/extensions/ebt_ip6.c
index e3e0956..dd48547 100644
--- a/extensions/ebt_ip6.c
+++ b/extensions/ebt_ip6.c
@@ -53,8 +53,8 @@  static const struct option opts[] =
 
 struct icmpv6_names {
 	const char *name;
-	u_int8_t type;
-	u_int8_t code_min, code_max;
+	uint8_t type;
+	uint8_t code_min, code_max;
 };
 
 static const struct icmpv6_names icmpv6_codes[] = {
diff --git a/extensions/ebt_limit.c b/extensions/ebt_limit.c
index ee40e5c..d189a09 100644
--- a/extensions/ebt_limit.c
+++ b/extensions/ebt_limit.c
@@ -59,11 +59,11 @@  static void print_help(void)
 "                                default %u\n", EBT_LIMIT_BURST);
 }
 
-static int parse_rate(const char *rate, u_int32_t *val)
+static int parse_rate(const char *rate, uint32_t *val)
 {
 	const char *delim;
-	u_int32_t r;
-	u_int32_t mult = 1;  /* Seconds by default. */
+	uint32_t r;
+	uint32_t mult = 1;  /* Seconds by default. */
 
 	delim = strchr(rate, '/');
 	if (delim) {
@@ -151,7 +151,7 @@  static void final_check(const struct ebt_u_entry *entry,
 struct rates
 {
 	const char *name;
-	u_int32_t mult;
+	uint32_t mult;
 };
 
 static struct rates g_rates[] =
@@ -162,7 +162,7 @@  static struct rates g_rates[] =
 	{ "sec", EBT_LIMIT_SCALE }
 };
 
-static void print_rate(u_int32_t period)
+static void print_rate(uint32_t period)
 {
 	unsigned int i;