diff options
author | 2020-06-10 17:44:44 +0000 | |
---|---|---|
committer | 2020-06-10 17:44:44 +0000 | |
commit | 452410f505b943ef228924eb4d675258c1cb9c52 (patch) | |
tree | 01e468b90501dbdeb3d16fa42d40274015a9fff7 | |
parent | A bit of MSI support code; we need to distinguish between 32-bit and 64-bit (diff) | |
download | wireguard-openbsd-452410f505b943ef228924eb4d675258c1cb9c52.tar.xz wireguard-openbsd-452410f505b943ef228924eb4d675258c1cb9c52.zip |
Cast imsg->data to char pointer to silence GCC warning
warning: format '%s' expects type 'char *', but argument 2 has type 'void *'
Seen on sparc64.
OK tobhe
-rw-r--r-- | usr.sbin/ikectl/ikectl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ikectl/ikectl.c b/usr.sbin/ikectl/ikectl.c index 71f403d39ed..0a81a79ebfa 100644 --- a/usr.sbin/ikectl/ikectl.c +++ b/usr.sbin/ikectl/ikectl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikectl.c,v 1.25 2020/03/22 15:59:05 tobhe Exp $ */ +/* $OpenBSD: ikectl.c,v 1.26 2020/06/10 17:44:44 kn Exp $ */ /* * Copyright (c) 2007-2013 Reyk Floeter <reyk@openbsd.org> @@ -405,7 +405,7 @@ show_string(struct imsg *imsg) return (done); if (IMSG_DATA_SIZE(imsg) > 0) - printf("%s", imsg->data); + printf("%s", (char *)imsg->data); else done = 1; |