mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue