cvs commit: src/sbin/route route.c

Joerg Sonnenberger joerg at britannica.bec.de
Tue Mar 15 22:16:27 PST 2005


On Tue, Mar 15, 2005 at 10:08:06PM -0800, Chris Pressey wrote:
> cpressey    2005/03/15 22:08:06 PST
> 
> DragonFly src repository
> 
>   Modified files:
>     sbin/route           route.c 
>   Log:
>   When dumping the contents of a struct sockaddr with an unknown address
>   family, dump individual bytes (u_chars) instead of u_shorts.  This
>   avoids endianness issues while also simplifying the code.

Better :) Some minor language lawyering, use uint8_t which is a byte.
There's not much preventing char from being not a byte long :)

Joerg





More information about the Commits mailing list