diff options
Diffstat (limited to 'libarptc')
-rw-r--r-- | libarptc/libarptc.c | 4 | ||||
-rw-r--r-- | libarptc/libarptc_incl.c | 2 |
2 files changed, 3 insertions, 3 deletions
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"); |