Skip to content

Commit

Permalink
Merge pull request libpcp#2 from shadeslayer/build_fix
Browse files Browse the repository at this point in the history
learned_dscp is a uint8_t and not a unsigned short, pass u to printf instead
  • Loading branch information
libpcp committed Jan 7, 2014
2 parents 321fdf5 + af2d791 commit 3dd47e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcp_app/pcp_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static void print_get_dscp(pcp_flow_t* f)
for (; cnt>0; cnt--, ret++) {
char ntop_buff[INET6_ADDRSTRLEN];
char timebuf[32];
printf("%-20s %5hu %3d %5s %s",
printf("%-20s %5u %3d %5s %s",
inet_ntop(AF_INET6, &ret->int_ip, ntop_buff,
sizeof(ntop_buff)),
ret->learned_dscp,
Expand Down

0 comments on commit 3dd47e9

Please sign in to comment.