get_mcn paramater is const.

solaris: failed attempt to get mcn and drive capabilities. Some
boilerplate routines used.

scsi_mmc: more defines.

src/cd-drive.c: bugfix when cdio is null
src/util.c: small enhancement.
This commit is contained in:
rocky
2004-04-25 03:52:37 +00:00
parent 1bf5f1e464
commit 36507b3c10
7 changed files with 153 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: image_common.h,v 1.2 2004/04/25 00:46:34 rocky Exp $
$Id: image_common.h,v 1.3 2004/04/25 03:52:37 rocky Exp $
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
@@ -28,9 +28,9 @@
string when done with it.
*/
static char *
_cdio_image_get_mcn(void *env)
_cdio_image_get_mcn(const void *env)
{
_img_private_t *_obj = env;
const _img_private_t *_obj = env;
if (NULL == _obj->mcn) return NULL;
return strdup(_obj->mcn);