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>
This commit is contained in:
Salvador Cuñat 2015-04-04 01:11:35 +02:00 committed by Dirk Hohndel
parent 3ca4e14d5c
commit 13a0ad020a

View file

@ -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;