mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue