summaryrefslogtreecommitdiffstats
path: root/core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-11-27 20:28:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-27 13:42:10 -0800
commit8be626d2c1f7d6a91eecb45dc91cdeb961f0a62b (patch)
tree2d84710a4094bc2c5841fd337c07e0d54b3f9f30 /core/parse-xml.c
parentb3605de93e1c5e7f5a68f6692b8d26806f575625 (diff)
downloadsubsurface-8be626d2c1f7d6a91eecb45dc91cdeb961f0a62b.tar.gz
Move atoi_n to parse.c
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r--core/parse-xml.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index f1da26e9a..372e81008 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -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;