summaryrefslogtreecommitdiffstats
path: root/sys/sys/cdio.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-08 09:47:47 +0000
committerbde <bde@FreeBSD.org>1998-06-08 09:47:47 +0000
commit566ee5c323c868aba9bdc6c3d1ad52a3dd7b17e9 (patch)
tree60516df8ad7a4fdc14c976a4578f7bf48ed75610 /sys/sys/cdio.h
parentfaa17713f8d56432bac81058b7e1d2596e19c5b1 (diff)
downloadFreeBSD-src-566ee5c323c868aba9bdc6c3d1ad52a3dd7b17e9.zip
FreeBSD-src-566ee5c323c868aba9bdc6c3d1ad52a3dd7b17e9.tar.gz
Fixed pedantic semantics errors (bitfields not of type int, signed int
or unsigned int (this doesn't change the struct layout, size or alignment in any of the files changed in this commit, at least for gcc on i386's. Using bitfields of type u_char may affect size and alignment but not packing)).
Diffstat (limited to 'sys/sys/cdio.h')
-rw-r--r--sys/sys/cdio.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/sys/sys/cdio.h b/sys/sys/cdio.h
index c037998..30a328a 100644
--- a/sys/sys/cdio.h
+++ b/sys/sys/cdio.h
@@ -1,7 +1,7 @@
/*
* 16 Feb 93 Julian Elischer (julian@dialix.oz.au)
*
- * $Id: cdio.h,v 1.16 1997/02/22 09:44:53 peter Exp $
+ * $Id: cdio.h,v 1.17 1997/05/04 15:24:23 joerg Exp $
*/
/*
@@ -43,16 +43,16 @@ union msf_lba {
};
struct cd_toc_entry {
- u_char :8;
- u_char control:4;
- u_char addr_type:4;
+ u_int :8;
+ u_int control:4;
+ u_int addr_type:4;
u_char track;
- u_char :8;
+ u_int :8;
union msf_lba addr;
};
struct cd_sub_channel_header {
- u_char :8;
+ u_int :8;
u_char audio_status;
#define CD_AS_AUDIO_INVALID 0x00
#define CD_AS_PLAY_IN_PROGRESS 0x11
@@ -65,8 +65,8 @@ struct cd_sub_channel_header {
struct cd_sub_channel_position_data {
u_char data_format;
- u_char control:4;
- u_char addr_type:4;
+ u_int control:4;
+ u_int addr_type:4;
u_char track_number;
u_char index_number;
union msf_lba absaddr;
@@ -75,21 +75,21 @@ struct cd_sub_channel_position_data {
struct cd_sub_channel_media_catalog {
u_char data_format;
- u_char :8;
- u_char :8;
- u_char :8;
- u_char :7;
- u_char mc_valid:1;
+ u_int :8;
+ u_int :8;
+ u_int :8;
+ u_int :7;
+ u_int mc_valid:1;
u_char mc_number[15];
};
struct cd_sub_channel_track_info {
u_char data_format;
- u_char :8;
+ u_int :8;
u_char track_number;
- u_char :8;
- u_char :7;
- u_char ti_valid:1;
+ u_int :8;
+ u_int :7;
+ u_int ti_valid:1;
u_char ti_number[15];
};
OpenPOWER on IntegriCloud