From owner-freebsd-bugs Thu Oct 3 19:10:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA25511 for bugs-outgoing; Thu, 3 Oct 1996 19:10:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA25503; Thu, 3 Oct 1996 19:10:02 -0700 (PDT) Resent-Date: Thu, 3 Oct 1996 19:10:02 -0700 (PDT) Resent-Message-Id: <199610040210.TAA25503@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Tor.Egge@idt.ntnu.no 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 ; 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 ; 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 Reply-To: Tor.Egge@idt.ntnu.no To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/1717: Use of ntohl causes lint to complain Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1717 >Category: misc >Synopsis: Use of ntohl causes lint to complain >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 3 19:10:01 PDT 1996 >Last-Modified: >Originator: Tor Egge >Organization: Norwegian University of Science and Technology, Trondheim, Norway >Release: FreeBSD 2.2-CURRENT i386 >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) >Audit-Trail: >Unformatted: