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 --- libarptc/libarptc.c | 4 ++-- libarptc/libarptc_incl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libarptc') diff --git a/libarptc/libarptc.c b/libarptc/libarptc.c index 0025a75..6d97735 100644 --- a/libarptc/libarptc.c +++ b/libarptc/libarptc.c @@ -256,8 +256,8 @@ unconditional(const struct arpt_arp *arp) { unsigned int i; - for (i = 0; i < sizeof(*arp)/sizeof(u_int32_t); i++) - if (((u_int32_t *)arp)[i]) + for (i = 0; i < sizeof(*arp) / sizeof(uint32_t); i++) + if (((uint32_t *)arp)[i]) return 0; return 1; diff --git a/libarptc/libarptc_incl.c b/libarptc/libarptc_incl.c index 87404ce..ca23da6 100644 --- a/libarptc/libarptc_incl.c +++ b/libarptc/libarptc_incl.c @@ -1688,7 +1688,7 @@ TC_COMMIT(TC_HANDLE_T *handle) /* Kernel will think that pointer should be 64-bits, and get padding. So we accomodate here (assumption: alignment of `counters' is on 64-bit boundary). */ - u_int64_t *kernptr = (u_int64_t *)&newcounters->counters; + uint64_t *kernptr = (uint64_t *)&newcounters->counters; if ((unsigned long)&newcounters->counters % 8 != 0) { fprintf(stderr, "counters alignment incorrect! Mail rusty!\n"); -- cgit v1.2.3