]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up rounding up.
authorGuy Harris <[email protected]>
Mon, 11 Nov 2019 04:51:48 +0000 (20:51 -0800)
committerGuy Harris <[email protected]>
Mon, 11 Nov 2019 04:51:48 +0000 (20:51 -0800)
commit866358cc52760b68947ae57b4f75f1e1709700b6
tree7e401d7491ab692deb1552add91c66cd8be17891
parentc376b499aed0b943a3ffe796889676c10ab3aaed
Clean up rounding up.

Have roundup2() cast the power-of-2 argument to u_int; that way, you
don't have to explicitly define it as an unsigned value in order to
avoid compiler or UBSan complaints about signed integers.

Use it instead of rolling our own rounding-to-a-power-of-2.
netdissect.h
print-forces.c
print-hncp.c
print-nfs.c
print-wb.c