diff options
author | bde <bde@FreeBSD.org> | 1998-08-16 01:04:48 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-16 01:04:48 +0000 |
commit | e14b44bbf30df0b2ba5a4750b2c2806bcae489eb (patch) | |
tree | 122f1a6528f49f797fecf48333a8ada44c995212 /sys/dev | |
parent | ae29a59a4538fbc72075d2f0fc54e70fc5f76136 (diff) | |
download | FreeBSD-src-e14b44bbf30df0b2ba5a4750b2c2806bcae489eb.zip FreeBSD-src-e14b44bbf30df0b2ba5a4750b2c2806bcae489eb.tar.gz |
Cast an int to (intptr_t) before casting it to (void *).
Don't cast a pointer to a long just to print it.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/si/si.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index 81430ff..4b37f61 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $Id: si.c,v 1.73 1998/06/13 19:36:22 steve Exp $ + * $Id: si.c,v 1.74 1998/08/16 00:57:07 bde Exp $ */ #ifndef lint @@ -465,7 +465,7 @@ si_eisa_attach(ed) * to be lazy and hand it the unit number. */ if (eisa_reg_intr(ed, irq, (void (*)(void *)) si_intr, - (void *)(ed->unit), &tty_imask, 1)) { + (void *)(intptr_t)(ed->unit), &tty_imask, 1)) { printf("si%d: failed to register interrupt %d\n", ed->unit, irq); return -1; @@ -517,8 +517,8 @@ siprobe(id) */ if ((caddr_t)paddr < (caddr_t)IOM_BEGIN || (caddr_t)paddr >= (caddr_t)IOM_END) { - printf("si%d: iomem (%lx) out of range\n", - id->id_unit, (long)paddr); + printf("si%d: iomem (%p) out of range\n", + id->id_unit, (void *)paddr); return(0); } |