diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-08-06 20:31:50 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-08-06 20:31:50 +0000 |
commit | dd7660e5bdfb6510c993f066723b1669c14ceec6 (patch) | |
tree | 5cfbd88a23ac14867ba09cd32a05af7c524170b3 /usr.sbin/yp_mkdb/yp_mkdb.c | |
parent | 8bdf81e4d14d9b31cd0a7931de59510c3a6761c2 (diff) |
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);
^~~~~~~~~
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=363988
Diffstat (limited to 'usr.sbin/yp_mkdb/yp_mkdb.c')
-rw-r--r-- | usr.sbin/yp_mkdb/yp_mkdb.c | 4 |
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 c8c545306e18..19139c3dc61e 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; |