summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"))) {
/*