diff options
author | phk <phk@FreeBSD.org> | 2002-12-16 22:33:27 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-12-16 22:33:27 +0000 |
commit | cd9caf5281a974ce67d8a16653a7751319c598f0 (patch) | |
tree | 4277245a1c753465572318c1f0e7bbd1ec48350c /sys/geom/geom_mbr.c | |
parent | d975ae88c1d27ae949bace4ebe9916bc7be8afbf (diff) | |
download | FreeBSD-src-cd9caf5281a974ce67d8a16653a7751319c598f0.zip FreeBSD-src-cd9caf5281a974ce67d8a16653a7751319c598f0.tar.gz |
Constification and some s/int/u_int/ changes.
Diffstat (limited to 'sys/geom/geom_mbr.c')
-rw-r--r-- | sys/geom/geom_mbr.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c index 30e7f54..f18d0d8 100644 --- a/sys/geom/geom_mbr.c +++ b/sys/geom/geom_mbr.c @@ -103,25 +103,25 @@ g_mbr_start(struct bio *bp) struct g_geom *gp; struct g_mbr_softc *mp; struct g_slicer *gsp; - int index; + int idx; pp = bp->bio_to; - index = pp->index; + idx = pp->index; gp = pp->geom; gsp = gp->softc; mp = gsp->softc; if (bp->bio_cmd == BIO_GETATTR) { - if (g_handleattr_int(bp, "MBR::type", mp->type[index])) + if (g_handleattr_int(bp, "MBR::type", mp->type[idx])) return (1); if (g_handleattr_off_t(bp, "MBR::offset", - gsp->slices[index].offset)) + gsp->slices[idx].offset)) return (1); } return (0); } static void -g_mbr_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_consumer *cp __unused, struct g_provider *pp) +g_mbr_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp __unused, struct g_provider *pp) { struct g_mbr_softc *mp; struct g_slicer *gsp; @@ -289,22 +289,22 @@ g_mbrext_start(struct bio *bp) struct g_geom *gp; struct g_mbrext_softc *mp; struct g_slicer *gsp; - int index; + int idx; pp = bp->bio_to; - index = pp->index; + idx = pp->index; gp = pp->geom; gsp = gp->softc; mp = gsp->softc; if (bp->bio_cmd == BIO_GETATTR) { - if (g_handleattr_int(bp, "MBR::type", mp->type[index])) + if (g_handleattr_int(bp, "MBR::type", mp->type[idx])) return (1); } return (0); } static void -g_mbrext_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_consumer *cp __unused, struct g_provider *pp) +g_mbrext_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp __unused, struct g_provider *pp) { struct g_mbrext_softc *mp; struct g_slicer *gsp; |