diff options
author | pjd <pjd@FreeBSD.org> | 2004-05-04 07:45:39 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-05-04 07:45:39 +0000 |
commit | f8606822ff25d893f37800d30551212edd9848ed (patch) | |
tree | dc2fa4f94a816494346e30ddb34c2a74a10775e7 /sys/geom | |
parent | fff477ffd40cd533d671c4ac6043b7cbb5f58920 (diff) | |
download | FreeBSD-src-f8606822ff25d893f37800d30551212edd9848ed.zip FreeBSD-src-f8606822ff25d893f37800d30551212edd9848ed.tar.gz |
Fix compilation on 64-bit architectures.
Noticed by: Tinderbox
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/concat/g_concat.c | 3 |
1 files changed, 2 insertions, 1 deletions
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<id>%zu</id>\n", indent, sc->sc_id); + sbuf_printf(sb, "%s<id>%u</id>\n", indent, (u_int)sc->sc_id); switch (sc->sc_type) { case G_CONCAT_TYPE_AUTOMATIC: sbuf_printf(sb, "%s<type>%s</type>\n", indent, |