Add DRIVER_OP_UNINIT and change appropriate DRIVER_OP_ERROR's to

DRIVER_OP_UNINIT.
This commit is contained in:
rocky
2005-01-20 00:36:38 +00:00
parent 8588f4ae8e
commit f7ebed2287
6 changed files with 24 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: _cdio_linux.c,v 1.11 2005/01/19 09:40:50 rocky Exp $
$Id: _cdio_linux.c,v 1.12 2005/01/20 00:36:38 rocky Exp $
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2002, 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
@@ -27,7 +27,7 @@
# include "config.h"
#endif
static const char _rcsid[] = "$Id: _cdio_linux.c,v 1.11 2005/01/19 09:40:50 rocky Exp $";
static const char _rcsid[] = "$Id: _cdio_linux.c,v 1.12 2005/01/20 00:36:38 rocky Exp $";
#include <string.h>
@@ -996,7 +996,7 @@ set_speed_linux (void *p_user_data, int i_speed)
{
const _img_private_t *p_env = p_user_data;
if (!p_env) return DRIVER_OP_ERROR;
if (!p_env) return DRIVER_OP_UNINIT;
return ioctl(p_env->gen.fd, CDROM_SELECT_SPEED, i_speed);
}