INN commit: trunk (frontends/ovdb_stat.c storage/ovdb/ovdb.c)
INN Commit
rra at isc.org
Sat Nov 10 22:12:04 UTC 2018
Date: Saturday, November 10, 2018 @ 14:12:03
Author: iulius
Revision: 10298
Silent cast-align warning from GCC 8.1
Modified:
trunk/frontends/ovdb_stat.c
trunk/storage/ovdb/ovdb.c
-----------------------+
frontends/ovdb_stat.c | 2 +-
storage/ovdb/ovdb.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
Modified: frontends/ovdb_stat.c
===================================================================
--- frontends/ovdb_stat.c 2018-11-10 21:56:21 UTC (rev 10297)
+++ frontends/ovdb_stat.c 2018-11-10 22:12:03 UTC (rev 10298)
@@ -154,7 +154,7 @@
}
break;
case LSN: /* 'a' points to DB_LSN */
- dl = (DB_LSN *)(cp + tab[i].a);
+ dl = (DB_LSN *)(void *)(cp + tab[i].a);
if (dl->file == 0) {
printf("%16s%s", "none", sep);
} else {
Modified: storage/ovdb/ovdb.c
===================================================================
--- storage/ovdb/ovdb.c 2018-11-10 21:56:21 UTC (rev 10297)
+++ storage/ovdb/ovdb.c 2018-11-10 22:12:03 UTC (rev 10298)
@@ -1948,9 +1948,9 @@
/* Hmm... Berkeley DB needs something like a 'struct iovec' so that we don't
have to make a new buffer and copy everything in to it. */
- ((struct ovdata *)databuf)->token = token;
- ((struct ovdata *)databuf)->arrived = arrived;
- ((struct ovdata *)databuf)->expires = expires;
+ ((struct ovdata *)(void *)databuf)->token = token;
+ ((struct ovdata *)(void *)databuf)->arrived = arrived;
+ ((struct ovdata *)(void *)databuf)->expires = expires;
#ifdef HAVE_ZLIB
if(ovdb_conf.compress && len > COMPRESS_MIN) {
More information about the inn-committers
mailing list