From 9006802f7274cbd72f45b507c4b9dd62893dacdd Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Nov 2016 06:33:45 -0800 Subject: Clean up some warnings in file.c Signed-off-by: Dirk Hohndel --- core/file.c | 7 ++----- 1 file 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"))) { /* -- cgit v1.2.3-70-g09d2