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:
Dimitry Andric 2020-08-06 20:31:50 +00:00
parent 8bdf81e4d1
commit dd7660e5bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363988

View file

@ -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;