summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 03:01:24 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 03:01:24 +0000
commit3957af67451414fa20296ea8566ad103c62e617c (patch)
tree7f64b08f8ee4fa127c4e4ea1d6ddca4765489d9c /usr.sbin/lpr
parentbc96d82ac87f8ba9645fc629acfffb2b31d48733 (diff)
downloadFreeBSD-src-3957af67451414fa20296ea8566ad103c62e617c.zip
FreeBSD-src-3957af67451414fa20296ea8566ad103c62e617c.tar.gz
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.
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/common_source/rmjob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/common_source/rmjob.c b/usr.sbin/lpr/common_source/rmjob.c
index 13f7d42..589117a 100644
--- a/usr.sbin/lpr/common_source/rmjob.c
+++ b/usr.sbin/lpr/common_source/rmjob.c
@@ -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++;
OpenPOWER on IntegriCloud