From 4c14050c9d5d8b2d29614134bd4193db8e5e50b5 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 18 Dec 2011 01:08:25 +0000 Subject: [PATCH] In usr.sbin/sa/db.c, avoid warnings about assigning two const char arrays to non-const void pointers, by casting away const explicitly. MFC after: 1 week --- usr.sbin/sa/db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/sa/db.c b/usr.sbin/sa/db.c index c6b25f3d7410..557f406436ea 100644 --- a/usr.sbin/sa/db.c +++ b/usr.sbin/sa/db.c @@ -79,7 +79,7 @@ db_copy_in(DB **mdb, const char *dbname, const char *uname, BTREEINFO *bti, /* Obtain/set version. */ version = 1; - key.data = &VERSION_KEY; + key.data = (void*)&VERSION_KEY; key.size = sizeof(VERSION_KEY); rv = DB_GET(ddb, &key, &data, 0); @@ -175,7 +175,7 @@ db_copy_out(DB *mdb, const char *dbname, const char *uname, BTREEINFO *bti) out: /* Add a version record. */ - key.data = &VERSION_KEY; + key.data = (void*)&VERSION_KEY; key.size = sizeof(VERSION_KEY); version = 2; data.data = &version;