Cast void * pointer to char * so the arg matches the %s format.

Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-12-03 04:55:23 +00:00
parent b21ed88a41
commit 6f1066fa3c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326492

View File

@ -94,7 +94,7 @@ hostdisk_open(struct open_file *f, ...)
if (desc->d_unit <= 0) {
printf("hostdisk_open: couldn't open %s: %d\n",
desc->d_opendata, desc->d_unit);
(char *)desc->d_opendata, desc->d_unit);
return (ENOENT);
}