Added some explicit casts to be able to build with a C++ compiler.

This commit is contained in:
Jef Driesen 2008-12-04 15:09:54 +00:00
parent b57c405440
commit 23ea0d5e18
7 changed files with 7 additions and 7 deletions

View File

@ -71,7 +71,7 @@ reefnet_sensuspro_parser_create (parser_t **out)
return PARSER_STATUS_ERROR;
// Allocate memory.
reefnet_sensuspro_parser_t *parser = malloc (sizeof (reefnet_sensuspro_parser_t));
reefnet_sensuspro_parser_t *parser = (reefnet_sensuspro_parser_t *) malloc (sizeof (reefnet_sensuspro_parser_t));
if (parser == NULL) {
WARNING ("Failed to allocate memory.");
return PARSER_STATUS_MEMORY;

View File

@ -71,7 +71,7 @@ reefnet_sensusultra_parser_create (parser_t **out)
return PARSER_STATUS_ERROR;
// Allocate memory.
reefnet_sensusultra_parser_t *parser = malloc (sizeof (reefnet_sensusultra_parser_t));
reefnet_sensusultra_parser_t *parser = (reefnet_sensusultra_parser_t *) malloc (sizeof (reefnet_sensusultra_parser_t));
if (parser == NULL) {
WARNING ("Failed to allocate memory.");
return PARSER_STATUS_MEMORY;

View File

@ -70,7 +70,7 @@ suunto_d9_parser_create (parser_t **out, unsigned int model)
return PARSER_STATUS_ERROR;
// Allocate memory.
suunto_d9_parser_t *parser = malloc (sizeof (suunto_d9_parser_t));
suunto_d9_parser_t *parser = (suunto_d9_parser_t *) malloc (sizeof (suunto_d9_parser_t));
if (parser == NULL) {
WARNING ("Failed to allocate memory.");
return PARSER_STATUS_MEMORY;

View File

@ -67,7 +67,7 @@ suunto_spyder_parser_create (parser_t **out)
return PARSER_STATUS_ERROR;
// Allocate memory.
suunto_spyder_parser_t *parser = malloc (sizeof (suunto_spyder_parser_t));
suunto_spyder_parser_t *parser = (suunto_spyder_parser_t *) malloc (sizeof (suunto_spyder_parser_t));
if (parser == NULL) {
WARNING ("Failed to allocate memory.");
return PARSER_STATUS_MEMORY;

View File

@ -67,7 +67,7 @@ suunto_vyper_parser_create (parser_t **out)
return PARSER_STATUS_ERROR;
// Allocate memory.
suunto_vyper_parser_t *parser = malloc (sizeof (suunto_vyper_parser_t));
suunto_vyper_parser_t *parser = (suunto_vyper_parser_t *) malloc (sizeof (suunto_vyper_parser_t));
if (parser == NULL) {
WARNING ("Failed to allocate memory.");
return PARSER_STATUS_MEMORY;

View File

@ -66,7 +66,7 @@ uwatec_memomouse_parser_create (parser_t **out)
return PARSER_STATUS_ERROR;
// Allocate memory.
uwatec_memomouse_parser_t *parser = malloc (sizeof (uwatec_memomouse_parser_t));
uwatec_memomouse_parser_t *parser = (uwatec_memomouse_parser_t *) malloc (sizeof (uwatec_memomouse_parser_t));
if (parser == NULL) {
WARNING ("Failed to allocate memory.");
return PARSER_STATUS_MEMORY;

View File

@ -72,7 +72,7 @@ uwatec_smart_parser_create (parser_t **out, unsigned int model)
return PARSER_STATUS_ERROR;
// Allocate memory.
uwatec_smart_parser_t *parser = malloc (sizeof (uwatec_smart_parser_t));
uwatec_smart_parser_t *parser = (uwatec_smart_parser_t *) malloc (sizeof (uwatec_smart_parser_t));
if (parser == NULL) {
WARNING ("Failed to allocate memory.");
return PARSER_STATUS_MEMORY;