Move atoi_n to parse.c

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2017-11-27 20:28:41 +02:00 committed by Dirk Hohndel
parent b3605de93e
commit 8be626d2c1
3 changed files with 15 additions and 13 deletions

View file

@ -29,7 +29,6 @@
int verbose, quit, force_root;
int last_xml_version = -1;
int diveid = -1;
static xmlDoc *test_xslt_transforms(xmlDoc *doc, const char **params);
@ -1886,18 +1885,6 @@ extern int divinglog_cylinder(void *handle, int columns, char **data, char **col
return 0;
}
static int atoi_n(char *ptr, unsigned int len)
{
if (len < 10) {
char buf[10];
memcpy(buf, ptr, len);
buf[len] = 0;
return atoi(buf);
}
return 0;
}
extern int divinglog_profile(void *handle, int columns, char **data, char **column)
{
(void) handle;