diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-10-15 20:36:11 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-10-15 20:36:11 +0300 |
commit | 2afd00cc2bdbaa401edc7117965b3db658576719 (patch) | |
tree | 8cfa0a8bc1059ebef7babde9466fe146abe2ee94 | |
parent | 7d0beb6599c53544739409ca4aec104bf27a3f35 (diff) | |
download | vmod-binlog-2afd00cc2bdbaa401edc7117965b3db658576719.tar.gz vmod-binlog-2afd00cc2bdbaa401edc7117965b3db658576719.tar.bz2 |
Fix compiler warnings.
-rw-r--r-- | src/binlog.c | 2 | ||||
-rw-r--r-- | src/binlogcat.c | 3 | ||||
-rw-r--r-- | src/binlogsel.c | 6 | ||||
-rw-r--r-- | src/pack.c | 2 |
4 files changed, 5 insertions, 8 deletions
diff --git a/src/binlog.c b/src/binlog.c index e7ac7e5..ea1aa65 100644 --- a/src/binlog.c +++ b/src/binlog.c @@ -465,7 +465,7 @@ reset(struct binlog_config *conf) conf->recnum = 0; } -static int +static void setstoptime(struct binlog_config *conf) { time_t ts; diff --git a/src/binlogcat.c b/src/binlogcat.c index ada8efe..6ab3daf 100644 --- a/src/binlogcat.c +++ b/src/binlogcat.c @@ -86,7 +86,8 @@ catlog(const char *fname) if (verbose_option) printf("# %s; format=%s; recsize=%lu; recnum=%lu\n", - fname, dataspec, header.recsize, header.recnum); + fname, dataspec, (unsigned long) header.recsize, + (unsigned long) header.recnum); inst = packcomp(dataspec, &p); if (!inst) { 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; @@ -741,8 +741,6 @@ packin(struct packinst *pi, struct packenv *env) struct packinst * packinnext(struct packinst *pi, struct packenv *env) { - int i; - if (!pi) return NULL; if (pi->spec->flags & F_REP) |