remove cdio_malloc and replace with calloc which does functionally

exactly the same thing (but is standard). In some drivers _data -> p_data.
This commit is contained in:
rocky
2005-02-03 07:35:14 +00:00
parent c54e370157
commit f1d3b190ba
15 changed files with 88 additions and 110 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: _cdio_osx.c,v 1.13 2005/01/27 23:23:22 rocky Exp $
$Id: _cdio_osx.c,v 1.14 2005/02/03 07:35:15 rocky Exp $
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
from vcdimager code:
@@ -34,7 +34,7 @@
#include "config.h"
#endif
static const char _rcsid[] = "$Id: _cdio_osx.c,v 1.13 2005/01/27 23:23:22 rocky Exp $";
static const char _rcsid[] = "$Id: _cdio_osx.c,v 1.14 2005/02/03 07:35:15 rocky Exp $";
#include <cdio/logging.h>
#include <cdio/sector.h>
@@ -1694,7 +1694,7 @@ cdio_open_osx (const char *psz_orig_source)
.set_speed = set_speed_osx,
};
_data = _cdio_malloc (sizeof (_img_private_t));
_data = calloc (1, sizeof (_img_private_t));
_data->access_mode = _AM_OSX;
_data->MediaClass_service = 0;
_data->gen.init = false;