[Pcsclite-cvs-commit] r5786 - /trunk/PCSC/src/hotplug_macosx.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Sat Jun 11 16:58:40 UTC 2011
Author: rousseau
Date: Sat Jun 11 16:58:40 2011
New Revision: 5786
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5786
Log:
Remove useless cast for calloc() (we are not in C++)
Modified:
trunk/PCSC/src/hotplug_macosx.c
Modified: trunk/PCSC/src/hotplug_macosx.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/hotplug_macosx.c?rev=5786&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_macosx.c (original)
+++ trunk/PCSC/src/hotplug_macosx.c Sat Jun 11 16:58:40 2011
@@ -181,7 +181,7 @@
* and HPDriverVectorRelease:376 */
readersNumber++;
- bundleVector = (HPDriver *) calloc(readersNumber, sizeof(HPDriver));
+ bundleVector = calloc(readersNumber, sizeof(HPDriver));
if (!bundleVector)
{
Log1(PCSC_LOG_ERROR, "memory allocation failure");
@@ -349,7 +349,7 @@
if (!rhs)
return NULL;
- HPDriver *newDriverBundle = (HPDriver *) calloc(1, sizeof(HPDriver));
+ HPDriver *newDriverBundle = calloc(1, sizeof(HPDriver));
if (!newDriverBundle)
return NULL;
@@ -396,7 +396,7 @@
static HPDeviceList
HPDeviceListInsert(HPDeviceList list, HPDriver * bundle, UInt32 address)
{
- HPDevice *newReader = (HPDevice *) calloc(1, sizeof(HPDevice));
+ HPDevice *newReader = calloc(1, sizeof(HPDevice));
if (!newReader)
{
More information about the Pcsclite-cvs-commit
mailing list