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
@ -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…
x
Reference in New Issue
Block a user