diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2015-04-04 01:11:35 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-04 10:35:03 -0700 |
commit | 13a0ad020a64b7e1249a9bd385f267e8b1eeec5c (patch) | |
tree | 79c9143db1cba97c1cad686e6efb2e45cfba7b9f /libdivecomputer.c | |
parent | 3ca4e14d5c4f758ac3754619fea78bd6d7070177 (diff) | |
download | subsurface-13a0ad020a64b7e1249a9bd385f267e8b1eeec5c.tar.gz |
libdivecomputer.c: Remove unused parameter in parse_gasmixes
data pointer is not used, so it can be safely removed.
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r-- | libdivecomputer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c index 2b724617f..069e87bd4 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -68,8 +68,7 @@ static dc_status_t create_parser(device_data_t *devdata, dc_parser_t **parser) return dc_parser_new(parser, devdata->device); } -static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t *parser, int ngases, - const unsigned char *data) +static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t *parser, int ngases) { static bool shown_warning = false; int i, rc; @@ -579,7 +578,7 @@ static dc_status_t libdc_header_parser(dc_parser_t *parser, struct device_data_t } #endif - rc = parse_gasmixes(devdata, dive, parser, ngases, NULL); + rc = parse_gasmixes(devdata, dive, parser, ngases); if (rc != DC_STATUS_SUCCESS && rc != DC_STATUS_UNSUPPORTED) { dev_info(devdata, translate("gettextFromC", "Error parsing the gas mix")); return rc; |