From fd8e4ebc8c18caec3eefac6527831f9ee6a92959 Mon Sep 17 00:00:00 2001 From: Mike Barcroft Date: Mon, 18 Feb 2002 20:35:27 +0000 Subject: o Move NTOHL() and associated macros into . These are deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's . Approved by: jake o Clean up files. o Remove unused __uint16_swap_uint32() from i386's . o Remove prototypes for non-existent bswapXX() functions. o Include in to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, , and . o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from . o Add missing includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm --- sys/cam/scsi/scsi_cd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/cam') diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index 7ac3195351ac..550ef41fa843 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -1991,7 +1991,7 @@ cdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) bcd2bin(th->starting_track); th->ending_track = bcd2bin(th->ending_track); } - NTOHS(th->len); + th->len = ntohs(th->len); bcopy(th, addr, sizeof(*th)); free(th, M_TEMP); } -- cgit v1.2.3