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
This commit is contained in:
parent
8bdf81e4d1
commit
dd7660e5bd
@ -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