From f8606822ff25d893f37800d30551212edd9848ed Mon Sep 17 00:00:00 2001 From: pjd Date: Tue, 4 May 2004 07:45:39 +0000 Subject: Fix compilation on 64-bit architectures. Noticed by: Tinderbox --- sys/geom/concat/g_concat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/geom') diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c index 2c6d9e2..af79223 100644 --- a/sys/geom/concat/g_concat.c +++ b/sys/geom/concat/g_concat.c @@ -592,6 +592,7 @@ g_concat_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) /* * Let's check if device already exists. */ + sc = NULL; LIST_FOREACH(gp, &mp->geom, geom) { sc = gp->softc; if (sc == NULL) @@ -756,7 +757,7 @@ g_concat_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, if (sc == NULL) return; if (pp == NULL && cp == NULL) { - sbuf_printf(sb, "%s%zu\n", indent, sc->sc_id); + sbuf_printf(sb, "%s%u\n", indent, (u_int)sc->sc_id); switch (sc->sc_type) { case G_CONCAT_TYPE_AUTOMATIC: sbuf_printf(sb, "%s%s\n", indent, -- cgit v1.1