DragonFly BSD
DragonFly commits List (threaded) for 2004-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: 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 ...


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 Jul 2004 09:59:41 -0700 (PDT)

:  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@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]