diff options
author | Felix Janda <felix.janda@posteo.de> | 2015-06-24 19:53:34 +0200 |
---|---|---|
committer | Eric Leblond <eric@regit.org> | 2015-06-26 09:12:55 +0200 |
commit | c9337b31f756cae85299c8275b21088ce02885e2 (patch) | |
tree | 21a2161706fd42a7ba3c330e9ec0485f40ecd42b /util | |
parent | 8a6ddd1cb2b55c234f1a97f7e5d996f24f46b6f8 (diff) |
Use stdint types everywhere
Signed-off-by: Felix Janda <felix.janda@posteo.de>
Diffstat (limited to 'util')
-rw-r--r-- | util/db.c | 2 | ||||
-rw-r--r-- | util/printpkt.c | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -362,7 +362,7 @@ static void __format_query_db(struct ulogd_pluginstance *upi, char *start) sprintf(stmt_ins, "%u,", res->u.value.ui16); break; case ULOGD_RET_IPADDR: - /* fallthrough when logging IP as u_int32_t */ + /* fallthrough when logging IP as uint32_t */ case ULOGD_RET_UINT32: sprintf(stmt_ins, "%u,", res->u.value.ui32); break; diff --git a/util/printpkt.c b/util/printpkt.c index eb6cfbf..69a47ca 100644 --- a/util/printpkt.c +++ b/util/printpkt.c @@ -199,7 +199,7 @@ static int printpkt_ipv4(struct ulogd_key *res, char *buf) { char *buf_cur = buf; char tmp[INET_ADDRSTRLEN]; - u_int32_t paddr; + uint32_t paddr; if (pp_is_valid(res, KEY_IP_SADDR)) buf_cur += sprintf(buf_cur, "SRC=%s ", @@ -363,8 +363,8 @@ static int printpkt_ipv6(struct ulogd_key *res, char *buf) int printpkt_arp(struct ulogd_key *res, char *buf) { char *buf_cur = buf; - u_int16_t code = 0; - u_int8_t *mac; + uint16_t code = 0; + uint8_t *mac; if (pp_is_valid(res, KEY_ARP_SPA)) buf_cur += sprintf(buf_cur, "SRC=%s ", |