aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-08-10 17:35:58 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-08-10 17:35:58 +0000
commita4624fea217d9b487e60c413efb896ab93da651c (patch)
tree2c56099aa5fe5c9003e2031bc0c3d17dfb7a4354
parent82d9a8467381e4633bb367b164c84dfc6f41aff7 (diff)
downloadsrc-a4624fea217d9b487e60c413efb896ab93da651c.tar.gz
src-a4624fea217d9b487e60c413efb896ab93da651c.zip
MFC r363988:
Fix clang 11 -Wformat warnings in yp_mkdb: usr.sbin/yp_mkdb/yp_mkdb.c:91:40: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat] printf("%.*s %.*s\n", (int)key.size, key.data, (int)data.size, ~~~~ ^~~~~~~~ usr.sbin/yp_mkdb/yp_mkdb.c:92:7: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat] data.data); ^~~~~~~~~
Notes
Notes: svn path=/stable/10/; revision=364084
-rw-r--r--usr.sbin/yp_mkdb/yp_mkdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/yp_mkdb/yp_mkdb.c b/usr.sbin/yp_mkdb/yp_mkdb.c
index f1f629a42b5b..ecc801071afc 100644
--- a/usr.sbin/yp_mkdb/yp_mkdb.c
+++ b/usr.sbin/yp_mkdb/yp_mkdb.c
@@ -88,8 +88,8 @@ unwind(char *map)
key.data = NULL;
while (yp_next_record(dbp, &key, &data, 1, 1) == YP_TRUE)
- printf("%.*s %.*s\n", (int)key.size, key.data, (int)data.size,
- data.data);
+ printf("%.*s %.*s\n", (int)key.size, (char *)key.data,
+ (int)data.size, (char *)data.data);
(void)(dbp->close)(dbp);
return;