aboutsummaryrefslogtreecommitdiff
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
commitc60b020b7953b545fcc71b3d27112f31c49b778c (patch)
tree7704b24371aaf79703658f3fae21eff2421d3c40
parent3d13ece4a9f138915e104c318854b1495d373a9d (diff)
downloadsrc-stable/9.tar.gz
src-stable/9.zip
MFC r363988:stable/9
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/9/; 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;