htons should be ntohs (minor)

salkind at Nyu.ARPA salkind at Nyu.ARPA
Mon Apr 16 06:01:16 AEST 1984


From:  Lou Salkind <salkind at Nyu.ARPA>

Subject: htons should be ntohs (minor)
Index:	netinet/in_pcb.c 4.2BSD

Description:
	For form's sake, an htons() call in in_pcbbind should really be an
	ntohs() call.  (It really doesn't matter that much, as they do the
	same thing on most machines.)
Fix:
	The line (around 65) should read:
	
		u_short aport = ntohs(lport);



More information about the Comp.unix.wizards mailing list