cvs commit: src/sys/bus/cam/scsi scsi_cd.c src/sys/contrib/ipfilter/netinet ip_fil.c src/sys/net/ip6fw ip6_fw.c src/sys/net/ipfw ip_fw.c src/sys/netgraph/mppc ng_mppc.c src/sys/netinet ip_icmp.c src/sys/netinet6 nd6_rtr.c src/sys/netproto/atm port.h ...

Matthew Dillon dillon at apollo.backplane.com
Fri Jul 23 10:01:33 PDT 2004


:  Remove usage of NTOHS / NTOHL / HTONS / HTONL.
:  
:  Discussed-with: hmp

    The last file in your commit seems to be changing an
    NTOHL into an ntohs instead of an ntohl.  That kinda looks
    like a bug?

    The other changes look ok.
  
					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>

===================================================================
RCS file: /cvs/src/sys/netproto/atm/uni/sscop_subr.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- src/sys/netproto/atm/uni/sscop_subr.c	2003/08/23 10:06:22	1.5
+++ src/sys/netproto/atm/uni/sscop_subr.c	2004/07/23 14:14:30	1.6
@@ -125,7 +125,7 @@ sscop_stat_getelem(m, pelem)
 	/*
 	 * Put element (sequence number) into host order
 	 */
-	NTOHL(*pelem);
+	*pelem = ntohs(*pelem);
 
 	/*
 	 * Get pointers set for next call





More information about the Commits mailing list