From 2afd00cc2bdbaa401edc7117965b3db658576719 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 15 Oct 2013 20:36:11 +0300 Subject: Fix compiler warnings. --- src/binlogsel.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/binlogsel.c') diff --git a/src/binlogsel.c b/src/binlogsel.c index b05b12c..e095347 100644 --- a/src/binlogsel.c +++ b/src/binlogsel.c @@ -178,7 +178,8 @@ selmem(const char *name, void *base) if (verbose_option) printf("# %s; format=%s; recsize=%lu; recnum=%lu\n", - name, dataspec, hdr->recsize, hdr->recnum); + name, dataspec, (unsigned long) hdr->recsize, + (unsigned long) hdr->recnum); inst = packcomp(dataspec, &p); if (!inst) { @@ -387,7 +388,6 @@ void selidx_day(const char *dir) { int from_day, to_day; - struct tm *tm; glob_t gl; int glinit = 0; char *dirbuf; @@ -438,7 +438,6 @@ void selidx_month(const char *dir) { int from_month, to_month; - struct tm *tm; glob_t gl; int glinit = 0; char *dirbuf; @@ -489,7 +488,6 @@ void selidx_year(const char *dir) { int from_year, to_year; - struct tm *tm; glob_t gl; int glinit = 0; char *dirbuf; -- cgit v1.2.1