diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-06-30 17:42:29 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-06-30 17:42:29 +0000 |
commit | f3d8e8c37468dcd32c697efa14ba08266613bcab (patch) | |
tree | 9f88d25ff96223a18b1eb6774069d75b883b666e /sys/dev | |
parent | b9ed4907e1d49384ebb013f2883f8cfcaf4ef1e0 (diff) |
Unbreak the tree; cast the result of sizeof() to u_int32_t before passing it
to htole32().
"go for it" miod@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index 1e21464a8f1..d9814a94f04 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.52 2006/06/30 12:32:53 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.53 2006/06/30 17:42:28 kettenis Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org> @@ -606,7 +606,7 @@ mpi_inq(struct mpi_softc *sc, u_int16_t target, int physdisk) sge->sg_hdr = htole32(MPI_SGE_FL_TYPE_SIMPLE | MPI_SGE_FL_SIZE_64 | MPI_SGE_FL_LAST | MPI_SGE_FL_EOB | MPI_SGE_FL_EOL | - sizeof(inq)); + (u_int32_t)sizeof(inq)); addr = ccb->ccb_cmd_dva + ((u_int8_t *)&bundle->inqbuf - (u_int8_t *)bundle); |