diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-11-09 06:33:45 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-11-09 06:33:45 -0800 |
commit | 9006802f7274cbd72f45b507c4b9dd62893dacdd (patch) | |
tree | 55d237ebfb61be94a13f5558cfb414b480722b18 /core/file.c | |
parent | 66d9cc788cdf1abc6ca73a945be86fcd033c1583 (diff) | |
download | subsurface-9006802f7274cbd72f45b507c4b9dd62893dacdd.tar.gz |
Clean up some warnings in file.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/file.c')
-rw-r--r-- | core/file.c | 7 |
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"))) { /* |