Fix a warning about mismatched pointers. A pointer to "void *" is not the
same as a pointer to "char *". Tell the compiler this is ok.
This commit is contained in:
parent
6229d8418b
commit
7ed21d3224
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121525
@ -350,7 +350,7 @@ rmremote(const struct printer *pp)
|
||||
}
|
||||
firstreq = elem;
|
||||
for (i = 0; i < requests; i++) {
|
||||
asprintf(&iov[elem].iov_base, " %d", requ[i]);
|
||||
asprintf((char **)&iov[elem].iov_base, " %d", requ[i]);
|
||||
if (iov[elem].iov_base == 0)
|
||||
fatal(pp, "out of memory in rmremote()");
|
||||
elem++;
|
||||
|
Loading…
Reference in New Issue
Block a user