Compilation fix.

This commit is contained in:
rocky
2004-05-08 14:47:35 +00:00
parent 749dfb717c
commit 93dfab09d1

View File

@@ -1,5 +1,5 @@
/* /*
$Id: freebsd_cam.c,v 1.5 2004/05/08 14:11:05 rocky Exp $ $Id: freebsd_cam.c,v 1.6 2004/05/08 14:47:35 rocky Exp $
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com> Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
@@ -26,7 +26,7 @@
# include "config.h" # include "config.h"
#endif #endif
static const char _rcsid[] = "$Id: freebsd_cam.c,v 1.5 2004/05/08 14:11:05 rocky Exp $"; static const char _rcsid[] = "$Id: freebsd_cam.c,v 1.6 2004/05/08 14:47:35 rocky Exp $";
#ifdef HAVE_FREEBSD_CDROM #ifdef HAVE_FREEBSD_CDROM
@@ -68,7 +68,7 @@ init_freebsd_cam (_img_private_t *_obj)
memset (&_obj->ccb, 0, sizeof(_obj->ccb)); memset (&_obj->ccb, 0, sizeof(_obj->ccb));
_obj->ccb.ccb_h.func_code = XPT_GDEVLIST; _obj->ccb.ccb_h.func_code = XPT_GDEVLIST;
if (-1 == _obj->fd) if (-1 == _obj->gen.fd)
_obj->gen.fd = open (_obj->device, O_RDONLY, 0); _obj->gen.fd = open (_obj->device, O_RDONLY, 0);
if (_obj->gen.fd < 0) if (_obj->gen.fd < 0)