summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_subr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-12-16 22:33:27 +0000
committerphk <phk@FreeBSD.org>2002-12-16 22:33:27 +0000
commitcd9caf5281a974ce67d8a16653a7751319c598f0 (patch)
tree4277245a1c753465572318c1f0e7bbd1ec48350c /sys/geom/geom_subr.c
parentd975ae88c1d27ae949bace4ebe9916bc7be8afbf (diff)
downloadFreeBSD-src-cd9caf5281a974ce67d8a16653a7751319c598f0.zip
FreeBSD-src-cd9caf5281a974ce67d8a16653a7751319c598f0.tar.gz
Constification and some s/int/u_int/ changes.
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r--sys/geom/geom_subr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index 96f3b61e..7fc15a1 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -88,7 +88,7 @@ g_add_class(struct g_class *mp)
}
struct g_geom *
-g_new_geomf(struct g_class *mp, char *fmt, ...)
+g_new_geomf(struct g_class *mp, const char *fmt, ...)
{
struct g_geom *gp;
va_list ap;
@@ -167,7 +167,7 @@ g_destroy_consumer(struct g_consumer *cp)
}
struct g_provider *
-g_new_providerf(struct g_geom *gp, char *fmt, ...)
+g_new_providerf(struct g_geom *gp, const char *fmt, ...)
{
struct g_provider *pp;
struct sbuf *sb;
@@ -451,14 +451,14 @@ g_access_rel(struct g_consumer *cp, int dcr, int dcw, int dce)
}
int
-g_handleattr_int(struct bio *bp, char *attribute, int val)
+g_handleattr_int(struct bio *bp, const char *attribute, int val)
{
return (g_handleattr(bp, attribute, &val, sizeof val));
}
int
-g_handleattr_off_t(struct bio *bp, char *attribute, off_t val)
+g_handleattr_off_t(struct bio *bp, const char *attribute, off_t val)
{
return (g_handleattr(bp, attribute, &val, sizeof val));
@@ -466,7 +466,7 @@ g_handleattr_off_t(struct bio *bp, char *attribute, off_t val)
int
-g_handleattr(struct bio *bp, char *attribute, void *val, int len)
+g_handleattr(struct bio *bp, const char *attribute, void *val, int len)
{
int error;
@@ -563,7 +563,7 @@ g_spoil(struct g_provider *pp, struct g_consumer *cp)
}
static struct g_class *
-g_class_by_name(char *name)
+g_class_by_name(const char *name)
{
struct g_class *mp;
@@ -576,7 +576,7 @@ g_class_by_name(char *name)
}
struct g_geom *
-g_insert_geom(char *class, struct g_consumer *cp)
+g_insert_geom(const char *class, struct g_consumer *cp)
{
struct g_class *mp;
struct g_geom *gp;
OpenPOWER on IntegriCloud