Index | Thread | Search

From:
Miod Vallat <miod@online.fr>
Subject:
Re: Cruft: drop htonl() etc. from libc
To:
Claudio Jeker <cjeker@diehard.n-r-g.com>
Cc:
Christian Weisgerber <naddy@mips.inka.de>, tech@openbsd.org
Date:
Fri, 12 Apr 2024 07:18:54 +0000

Download raw body.

Thread
  • Claudio Jeker:

    Cruft: drop htonl() etc. from libc

  • > > +	return __htobe16(x);
    > 
    > This looks the wrong way around. ntohs() is be16toh(). Same for ntohl
    > above. While it does not matter for our cases I think we should use the
    > right conversions here.
    
    I had this concern, too, but since we define be16toh as __htobe16 this
    doesn't really matter.
    
    
    
  • Claudio Jeker:

    Cruft: drop htonl() etc. from libc