DragonFly BSD
DragonFly commits List (threaded) for 2005-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sbin/route route.c


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Wed, 16 Mar 2005 07:14:26 +0100
Mail-followup-to: commits@crater.dragonflybsd.org

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]