Search
lxdream.org :: lxdream/src/drivers/cd_linux.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/cd_linux.c
changeset 1025:f32183d273fb
prev1023:264e2fd90be8
author nkeynes
date Sat Jun 13 07:03:51 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix signedness warnings
file annotate diff log raw
1.1 --- a/src/drivers/cd_linux.c Mon Jun 08 04:12:21 2009 +0000
1.2 +++ b/src/drivers/cd_linux.c Sat Jun 13 07:03:51 2009 +0000
1.3 @@ -33,9 +33,9 @@
1.4
1.5 static gboolean linux_is_cdrom_device( FILE *f );
1.6 static gdrom_disc_t linux_open_device( const gchar *filename, FILE *f );
1.7 -static gdrom_error_t linux_packet_read( gdrom_disc_t disc, unsigned char *cmd,
1.8 +static gdrom_error_t linux_packet_read( gdrom_disc_t disc, char *cmd,
1.9 unsigned char *buf, uint32_t *buflen );
1.10 -static gdrom_error_t linux_packet_cmd( gdrom_disc_t disc, unsigned char *cmd );
1.11 +static gdrom_error_t linux_packet_cmd( gdrom_disc_t disc, char *cmd );
1.12 static gboolean linux_media_changed( gdrom_disc_t disc );
1.13
1.14
1.15 @@ -119,7 +119,7 @@
1.16 * @return 0 on success, -1 on an operating system error, or a sense error
1.17 * code on a device error.
1.18 */
1.19 -static gdrom_error_t linux_packet_read( gdrom_disc_t disc, unsigned char *cmd,
1.20 +static gdrom_error_t linux_packet_read( gdrom_disc_t disc, char *cmd,
1.21 unsigned char *buffer, uint32_t *buflen )
1.22 {
1.23 int fd = fileno(disc->file);
1.24 @@ -147,7 +147,7 @@
1.25 }
1.26 }
1.27
1.28 -static gdrom_error_t linux_packet_cmd( gdrom_disc_t disc, unsigned char *cmd )
1.29 +static gdrom_error_t linux_packet_cmd( gdrom_disc_t disc, char *cmd )
1.30 {
1.31 int fd = fileno(disc->file);
1.32 struct request_sense sense;
.