From 23ea0d5e1822799588fc58471701d96cf9a95978 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 4 Dec 2008 15:09:54 +0000 Subject: [PATCH] Added some explicit casts to be able to build with a C++ compiler. --- src/reefnet_sensuspro_parser.c | 2 +- src/reefnet_sensusultra_parser.c | 2 +- src/suunto_d9_parser.c | 2 +- src/suunto_spyder_parser.c | 2 +- src/suunto_vyper_parser.c | 2 +- src/uwatec_memomouse_parser.c | 2 +- src/uwatec_smart_parser.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/reefnet_sensuspro_parser.c b/src/reefnet_sensuspro_parser.c index 1011990..ac8469d 100644 --- a/src/reefnet_sensuspro_parser.c +++ b/src/reefnet_sensuspro_parser.c @@ -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; diff --git a/src/reefnet_sensusultra_parser.c b/src/reefnet_sensusultra_parser.c index ddf5eb1..5c0342d 100644 --- a/src/reefnet_sensusultra_parser.c +++ b/src/reefnet_sensusultra_parser.c @@ -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; diff --git a/src/suunto_d9_parser.c b/src/suunto_d9_parser.c index e9973e1..cca8f4a 100644 --- a/src/suunto_d9_parser.c +++ b/src/suunto_d9_parser.c @@ -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; diff --git a/src/suunto_spyder_parser.c b/src/suunto_spyder_parser.c index ad8bd9f..3b4a07d 100644 --- a/src/suunto_spyder_parser.c +++ b/src/suunto_spyder_parser.c @@ -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; diff --git a/src/suunto_vyper_parser.c b/src/suunto_vyper_parser.c index a2a58eb..e6a8ad0 100644 --- a/src/suunto_vyper_parser.c +++ b/src/suunto_vyper_parser.c @@ -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; diff --git a/src/uwatec_memomouse_parser.c b/src/uwatec_memomouse_parser.c index 9d538d6..41230a0 100644 --- a/src/uwatec_memomouse_parser.c +++ b/src/uwatec_memomouse_parser.c @@ -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; diff --git a/src/uwatec_smart_parser.c b/src/uwatec_smart_parser.c index 4929674..3777386 100644 --- a/src/uwatec_smart_parser.c +++ b/src/uwatec_smart_parser.c @@ -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;