From Tor.Egge@idt.ntnu.no  Thu Oct  3 19:05:14 1996
Received: from pat.idt.unit.no (pat.idt.unit.no [129.241.103.5])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA24386
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 3 Oct 1996 19:05:06 -0700 (PDT)
Received: from ikke.idt.unit.no (ikke.idt.unit.no [129.241.111.65]) by pat.idt.unit.no (8.7.5/8.7.3) with ESMTP id EAA03386 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 4 Oct 1996 04:05:02 +0200 (MET DST)
Received: (from tegge@localhost) by ikke.idt.unit.no (8.7.5/8.7.3) id EAA05330; Fri, 4 Oct 1996 04:05:01 +0200 (MET DST)
Message-Id: <199610040205.EAA05330@ikke.idt.unit.no>
Date: Fri, 4 Oct 1996 04:05:01 +0200 (MET DST)
From: Tor Egge <Tor.Egge@idt.ntnu.no>
Reply-To: Tor.Egge@idt.ntnu.no
To: FreeBSD-gnats-submit@freebsd.org
Subject: Use of ntohl causes lint to complain
X-Send-Pr-Version: 3.2

>Number:         1717
>Category:       misc
>Synopsis:       Use of ntohl causes lint to complain
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    steve
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct  3 19:10:01 PDT 1996
>Closed-Date:    Sat Jan 3 20:31:59 PST 1998
>Last-Modified:  Sat Jan  3 20:32:58 PST 1998
>Originator:     Tor Egge
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
Norwegian University of Science and Technology, Trondheim, Norway
>Environment:

FreeBSD ikke.idt.unit.no 2.2-CURRENT FreeBSD 2.2-CURRENT #24: Wed Oct  2 22:09:51 MET DST 1996     root@ikke.idt.unit.no:/usr/src/sys/compile/TEGGE  i386


>Description:

	Running lint on programs that use ntohl causes lint to complain.

>How-To-Repeat:

	Run lint on a program that uses ntohl.

>Fix:
Index: /sys/i386/include/endian.h
===================================================================
RCS file: /export/akg1/cvs/src/sys/i386/include/endian.h,v
retrieving revision 1.6
diff -c -r1.6 endian.h
*** endian.h	1995/02/12 08:31:31	1.6
--- endian.h	1996/10/04 01:52:49
***************
*** 94,100 ****
  /*
   * Macros for network/external number representation conversion.
   */
! #if BYTE_ORDER == BIG_ENDIAN && !defined(lint)
  #define	ntohl(x)	(x)
  #define	ntohs(x)	(x)
  #define	htonl(x)	(x)
--- 94,100 ----
  /*
   * Macros for network/external number representation conversion.
   */
! #if BYTE_ORDER == BIG_ENDIAN || defined(lint)
  #define	ntohl(x)	(x)
  #define	ntohs(x)	(x)
  #define	htonl(x)	(x)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sat Jan 3 20:31:59 PST 1998 
State-Changed-Why:  
Now fixed in both -current and -stable. 
>Unformatted:
