From 7ed21d32249aa748e8db4fbb14a57fc44b7bdb39 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 26 Oct 2003 03:01:24 +0000 Subject: [PATCH] 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. --- usr.sbin/lpr/common_source/rmjob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/lpr/common_source/rmjob.c b/usr.sbin/lpr/common_source/rmjob.c index 13f7d4285cb4..589117a64244 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++;