From 0d3f37a8043fa635540b44faab649dec10506b99 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 9 Apr 2002 15:12:05 +0000 Subject: [PATCH] Constifixation of attribute argument to g_io_[gs]etattr() Sponsored by: DARPA & NAI Labs --- sys/geom/geom.h | 4 ++-- sys/geom/geom_io.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/geom/geom.h b/sys/geom/geom.h index 7c85d2ba2b1..4c9b3f0664b 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -210,9 +210,9 @@ struct bio * g_clone_bio(struct bio *); void g_destroy_bio(struct bio *); void g_io_deliver(struct bio *bp); void g_io_fail(struct bio *bp, int error); -int g_io_getattr(char *attr, struct g_consumer *cp, int *len, void *ptr); +int g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr); void g_io_request(struct bio *bp, struct g_consumer *cp); -int g_io_setattr(char *attr, struct g_consumer *cp, int len, void *ptr); +int g_io_setattr(const char *attr, struct g_consumer *cp, int len, void *ptr); struct bio *g_new_bio(void); void * g_read_data(struct g_consumer *cp, off_t offset, off_t length, int *error); diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index 99e824d15d5..c3e7bd16f84 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -164,7 +164,7 @@ g_io_init() } int -g_io_setattr(char *attr, struct g_consumer *cp, int len, void *ptr) +g_io_setattr(const char *attr, struct g_consumer *cp, int len, void *ptr) { struct bio *bp; int error; @@ -193,7 +193,7 @@ g_io_setattr(char *attr, struct g_consumer *cp, int len, void *ptr) int -g_io_getattr(char *attr, struct g_consumer *cp, int *len, void *ptr) +g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr) { struct bio *bp; int error; -- 2.45.2