summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-11-09 06:33:45 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-11-09 06:33:45 -0800
commit9006802f7274cbd72f45b507c4b9dd62893dacdd (patch)
tree55d237ebfb61be94a13f5558cfb414b480722b18
parent66d9cc788cdf1abc6ca73a945be86fcd033c1583 (diff)
downloadsubsurface-9006802f7274cbd72f45b507c4b9dd62893dacdd.tar.gz
Clean up some warnings in file.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/file.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/file.c b/core/file.c
index 536109768..5b910e72b 100644
--- a/core/file.c
+++ b/core/file.c
@@ -896,10 +896,9 @@ int parse_txt_file(const char *filename, const char *csv)
int parse_dan_format(const char *filename, char **params, int pnr)
{
- int ret = 0, i, end_ptr = 0;
+ int ret = 0, i;
+ size_t end_ptr = 0;
struct memblock mem, mem_csv;
- time_t now;
- struct tm *timep = NULL;
char tmpbuf[MAXCOLDIGITS];
char *ptr = NULL;
@@ -919,8 +918,6 @@ int parse_dan_format(const char *filename, char **params, int pnr)
return -1;
}
- int j = 0;
-
while ((end_ptr < mem.size) && (ptr = strstr(mem.buffer + end_ptr, "ZDH"))) {
/*