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:
Dimitry Andric 2020-08-10 17:35:58 +00:00
parent 82d9a84673
commit a4624fea21
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=364084

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;