Synchronise with FreeBSD:
authorJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Sun, 18 Sep 2005 11:36:08 +0000 (11:36 +0000)
committerJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Sun, 18 Sep 2005 11:36:08 +0000 (11:36 +0000)
commitb534d61c82722c28ccc38c924e67fd140b94dd37
treec4b27e6f8e1819554c5fdd0bb6e94694fbbbdafb
parented2e58cb67740e2f494c6d75b9e5453742c392e4
Synchronise with FreeBSD:

make printlink()'s FTSENT parameter const, it doesn't get modified at all
during the function call, reflect that.

Use the unit_t typedef for the unitp array.

Use u_int for unit_sz as other unsigned integers do.

Cast ilogb()'s return value to u_int to match unit_sz (ilogb() returns an int).

Cast UNIT_MAX to u_int because enum types are int.
bin/ls/print.c