mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 02:42:46 +00:00
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); ^~~~~~~~~
This commit is contained in:
parent
82d9a84673
commit
a4624fea21
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=364084
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user