summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_mbr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-06-09 10:57:34 +0000
committerphk <phk@FreeBSD.org>2002-06-09 10:57:34 +0000
commit411db1de5af2d592dad99b0be550c1d1396cb0bd (patch)
tree2aee47df7b4c048e552dfb36f69f352adcc71438 /sys/geom/geom_mbr.c
parent3f079678493fd4e553dce8c31386e74404b08d11 (diff)
downloadFreeBSD-src-411db1de5af2d592dad99b0be550c1d1396cb0bd.zip
FreeBSD-src-411db1de5af2d592dad99b0be550c1d1396cb0bd.tar.gz
Improve some on the naming.
Submitted by: iedowse
Diffstat (limited to 'sys/geom/geom_mbr.c')
-rw-r--r--sys/geom/geom_mbr.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c
index 90ebaff..9e9fd7f 100644
--- a/sys/geom/geom_mbr.c
+++ b/sys/geom/geom_mbr.c
@@ -58,7 +58,9 @@
#include <geom/geom.h>
#include <geom/geom_slice.h>
+#ifdef _KERNEL
#include "opt_geom.h"
+#endif
#define MBR_CLASS_NAME "MBR"
#define MBREXT_CLASS_NAME "MBREXT"
@@ -117,7 +119,7 @@ g_mbr_start(struct bio *bp)
gsp = gp->softc;
mp = gsp->softc;
if (bp->bio_cmd == BIO_GETATTR) {
- if (g_haveattr_int(bp, "MBR::type", mp->type[index]))
+ if (g_handleattr_int(bp, "MBR::type", mp->type[index]))
return (1);
}
return (0);
@@ -267,7 +269,7 @@ static struct g_class g_mbr_class = {
MBR_CLASS_NAME,
g_mbr_taste,
NULL,
- G_CLASS_INITSTUFF
+ G_CLASS_INITIALIZER
};
DECLARE_GEOM_CLASS(g_mbr_class, g_mbr);
@@ -292,7 +294,7 @@ g_mbrext_start(struct bio *bp)
gsp = gp->softc;
mp = gsp->softc;
if (bp->bio_cmd == BIO_GETATTR) {
- if (g_haveattr_int(bp, "MBR::type", mp->type[index]))
+ if (g_handleattr_int(bp, "MBR::type", mp->type[index]))
return (1);
}
return (0);
@@ -416,7 +418,7 @@ static struct g_class g_mbrext_class = {
MBREXT_CLASS_NAME,
g_mbrext_taste,
NULL,
- G_CLASS_INITSTUFF
+ G_CLASS_INITIALIZER
};
DECLARE_GEOM_CLASS(g_mbrext_class, g_mbrext);
OpenPOWER on IntegriCloud