From c60ac0b9018fc730c2498fdc928aa0a662fa50ec Mon Sep 17 00:00:00 2001 From: Uwe Stuehler Date: Mon, 25 Feb 2008 12:20:26 +0000 Subject: Fix broken cast on 64bit platforms --- sys/dev/sdmmc/sbt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/sdmmc/sbt.c b/sys/dev/sdmmc/sbt.c index 6f94f164f64..7c80ce8c3f4 100644 --- a/sys/dev/sdmmc/sbt.c +++ b/sys/dev/sdmmc/sbt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbt.c,v 1.10 2008/02/24 21:34:48 uwe Exp $ */ +/* $OpenBSD: sbt.c,v 1.11 2008/02/25 12:20:25 uwe Exp $ */ /* * Copyright (c) 2007 Uwe Stuehler @@ -470,7 +470,7 @@ sbt_start(struct sbt_softc *sc, struct mbuf *m, struct ifqueue *q, int xmit) if (curproc == NULL || sc->sc_busy) { (void)workq_add_task(sc->sc_workq, 0, sbt_start_task, - sc, (void *)xmit); + sc, (void *)(long)xmit); splx(s); return; } @@ -545,7 +545,7 @@ void sbt_start_task(void *arg1, void *arg2) { struct sbt_softc *sc = arg1; - int xmit = (int)arg2; + int xmit = (long)arg2; switch (xmit) { case BTF_XMIT_CMD: -- cgit v1.2.3