Bug 29946 - ntohl() and friends uses non-standard types
Summary: ntohl() and friends uses non-standard types
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: i386 (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bruce Evans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-22 06:10 UTC by Jun-ichiro itojun Hagino
Modified: 2002-02-26 07:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jun-ichiro itojun Hagino 2001-08-22 06:10:17 UTC
	in XNET 5.2, ntohl() and htonl() are typed as follows:
		uint32_t ntohl(uint32_t x);
	and ntohs() and htons() are:
		uint16_t ntohs(uint16_t x);

	freebsd src/sys/i386/include/endian.h uses u_long and u_short, which
	are different from these types, and causes problem in portable
	appliation programming.

How-To-Repeat: 
	code inspection
Comment 1 Brian Somers freebsd_committer freebsd_triage 2001-08-23 15:20:53 UTC
Responsible Changed
From-To: freebsd-bugs->bde

I tried to fix this some time ago (sys/i386/include/endian.h 1.19).  Bruce 
eventually mostly reverted the change (I didn't object), so I think this 
PR belongs to him :*D
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2002-02-26 07:31:02 UTC
State Changed
From-To: open->closed


This was fixed some time ago in -CURRENT.  There are no plans to fix 
this this in -STABLE.