From f57a0b54ab1b5b2179d7d47f9b526638e8647fe8 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 13 Sep 2017 12:19:49 +0200 Subject: ifpps: use uint32_t instead of u32 Use type uint32_t instead of u32 (which is typedef'ed to uint32_t in built_in.h) in order to avoid confusion wrt. kernel-/user-space types. Signed-off-by: Tobias Klauser --- ifpps.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ifpps.c b/ifpps.c index 55c247b..8296add 100644 --- a/ifpps.c +++ b/ifpps.c @@ -702,7 +702,7 @@ static void stats_top(const struct ifstat *rel, const struct ifstat *abs, } static void screen_header(WINDOW *screen, const char *ifname, int *voff, - u32 rate, uint64_t ms_interval, unsigned int top_cpus) + uint32_t rate, uint64_t ms_interval, unsigned int top_cpus) { size_t len = 0; char buff[64], machine[64]; @@ -756,7 +756,7 @@ static void screen_net_dev_rel(WINDOW *screen, const struct ifstat *rel, } static void screen_net_dev_percentage(WINDOW *screen, const struct ifstat *rel, - int *voff, u32 rate) + int *voff, uint32_t rate) { mvwprintw(screen, (*voff)++, 0, " rx: %15.2llf%% of line rate " @@ -1072,7 +1072,7 @@ static void screen_update(WINDOW *screen, const char *ifname, const struct ifsta { unsigned int cpus, top; int voff = 1, cvoff = 2; - u32 rate = device_bitrate(ifname); + uint32_t rate = device_bitrate(ifname); curs_set(0); @@ -1146,7 +1146,7 @@ static int screen_main(const char *ifname, uint64_t ms_interval, bool omit_header __maybe_unused) { int first = 1, key; - u32 rate = device_bitrate(ifname); + uint32_t rate = device_bitrate(ifname); bool need_info = false; stats_screen = screen_init(true); -- cgit v1.2.3-54-g00ecf