measurement-factory / dnstop

Stay on top of your DNS traffic
BSD 3-Clause "New" or "Revised" License
94 stars 15 forks source link

fix incorrect format parameter #2

Closed fabianfrz closed 6 years ago

fabianfrz commented 6 years ago

fixes the following compiler warning:

clang -g -O2 -DUSE_IPV6=1   -c -o dnstop.o dnstop.c
dnstop.c:1165:38: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat]
        snprintf(buf, sizeof(buf), "#%hu?", t);
                                     ~~~    ^
                                     %u                                                                                                             
1 warning generated.