diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2008-02-25 12:20:26 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2008-02-25 12:20:26 +0000 |
commit | c60ac0b9018fc730c2498fdc928aa0a662fa50ec (patch) | |
tree | 0cd728e30739c26b0ce8124e271ba1e3ab54d9fb | |
parent | 9be39772df3ff75ba80d2f7d8cff46677cddce19 (diff) |
Fix broken cast on 64bit platforms
-rw-r--r-- | sys/dev/sdmmc/sbt.c | 6 |
1 files 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 <uwe@openbsd.org> @@ -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: |