add _t to another time. driver_id inside p_cdio wasn't initialized.

This commit is contained in:
rocky
2005-01-17 17:20:09 +00:00
parent 8c8c08aa67
commit 17c55ea59b
13 changed files with 59 additions and 46 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: _cdio_linux.c,v 1.6 2005/01/02 22:43:41 rocky Exp $
$Id: _cdio_linux.c,v 1.7 2005/01/17 17:20:09 rocky Exp $
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2002, 2003, 2004 Rocky Bernstein <rocky@panix.com>
@@ -27,7 +27,7 @@
# include "config.h"
#endif
static const char _rcsid[] = "$Id: _cdio_linux.c,v 1.6 2005/01/02 22:43:41 rocky Exp $";
static const char _rcsid[] = "$Id: _cdio_linux.c,v 1.7 2005/01/17 17:20:09 rocky Exp $";
#include <string.h>
@@ -1124,7 +1124,7 @@ cdio_open_am_linux (const char *psz_orig_source, const char *access_mode)
_img_private_t *_data;
char *psz_source;
cdio_funcs _funcs = {
cdio_funcs_t _funcs = {
.eject_media = eject_media_linux,
.free = cdio_generic_free,
.get_arg = get_arg_linux,
@@ -1190,6 +1190,8 @@ cdio_open_am_linux (const char *psz_orig_source, const char *access_mode)
ret = cdio_new ((void *)_data, &_funcs);
if (ret == NULL) return NULL;
ret->driver_id = DRIVER_LINUX;
if (cdio_generic_init(_data)) {
return ret;
} else {