summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus/immio.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-05 15:43:11 +0000
committerpeter <peter@FreeBSD.org>1999-04-05 15:43:11 +0000
commit28295ed7efd3d3aea1f6922ac5349b3e0a66e498 (patch)
treead2164cff65df8a83489921e8bc673e5d5534dea /sys/dev/ppbus/immio.c
parentcc94f76f3da79af2b6a53f74d10e61a5fc6c8792 (diff)
downloadFreeBSD-src-28295ed7efd3d3aea1f6922ac5349b3e0a66e498.zip
FreeBSD-src-28295ed7efd3d3aea1f6922ac5349b3e0a66e498.tar.gz
Make ppbus compile under egcs. I'm not sure about this casting-to-union-
-containing-the-type stuff, but gcc seemed to do it implicitly..
Diffstat (limited to 'sys/dev/ppbus/immio.c')
-rw-r--r--sys/dev/ppbus/immio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ppbus/immio.c b/sys/dev/ppbus/immio.c
index c022029..50b9c06 100644
--- a/sys/dev/ppbus/immio.c
+++ b/sys/dev/ppbus/immio.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: immio.c,v 1.5 1999/01/10 12:04:54 nsouch Exp $
+ * $Id: immio.c,v 1.6 1999/01/30 15:35:39 nsouch Exp $
*
*/
@@ -411,7 +411,8 @@ imm_outstr(struct vpoio_data *vpo, char *buffer, int size)
if (PPB_IN_EPP_MODE(&vpo->vpo_dev))
ppb_reset_epp_timeout(&vpo->vpo_dev);
- ppb_MS_exec(&vpo->vpo_dev, MS_OP_PUT, buffer, size, MS_UNKNOWN, &error);
+ ppb_MS_exec(&vpo->vpo_dev, MS_OP_PUT, (union ppb_insarg)buffer,
+ (union ppb_insarg)size, (union ppb_insarg)MS_UNKNOWN, &error);
return (error);
}
@@ -427,7 +428,8 @@ imm_instr(struct vpoio_data *vpo, char *buffer, int size)
if (PPB_IN_EPP_MODE(&vpo->vpo_dev))
ppb_reset_epp_timeout(&vpo->vpo_dev);
- ppb_MS_exec(&vpo->vpo_dev, MS_OP_GET, buffer, size, MS_UNKNOWN, &error);
+ ppb_MS_exec(&vpo->vpo_dev, MS_OP_GET, (union ppb_insarg)buffer,
+ (union ppb_insarg)size, (union ppb_insarg)MS_UNKNOWN, &error);
return (error);
}
OpenPOWER on IntegriCloud