[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: openntpd and ntpq
Brett Lymn wrote:
> On Fri, Sep 03, 2004 at 01:16:46PM +0200, Henning Brauer wrote:
>
>>There is no point in transforming something to host byte order
>>that is never used on the host.
>
> Currently never used, currently. If someone decided to add to your
> code then they may introduce an endian sensitive bug by assuming the
> internal data is in host endian. What you are doing violates the
> principle of least surprise - by doing that you lay the way open for
> bugs.
Rubbish. Keeping things in a canonical wire format is a *very* common
idiom.
-d