diff options
author | marcel <marcel@FreeBSD.org> | 2009-02-01 01:50:09 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2009-02-01 01:50:09 +0000 |
commit | 41ccd088c601ccdc3af29608e22e81b78a708b95 (patch) | |
tree | 1f2a01ba12a863c7bbda0c9ec3787b0e50ffd8bf /sys/geom/geom_subr.c | |
parent | c3045042619629c24f9994b20fb8aa21d4ddf677 (diff) | |
download | FreeBSD-src-41ccd088c601ccdc3af29608e22e81b78a708b95.zip FreeBSD-src-41ccd088c601ccdc3af29608e22e81b78a708b95.tar.gz |
Constify val in g_handleattr() and str in g_handleattr_str().
This allows passing string constants to g_handleattr_str().
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r-- | sys/geom/geom_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index 21509aa6a..b9c9d24 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -858,14 +858,14 @@ g_handleattr_off_t(struct bio *bp, const char *attribute, off_t val) } int -g_handleattr_str(struct bio *bp, const char *attribute, char *str) +g_handleattr_str(struct bio *bp, const char *attribute, const char *str) { return (g_handleattr(bp, attribute, str, 0)); } int -g_handleattr(struct bio *bp, const char *attribute, void *val, int len) +g_handleattr(struct bio *bp, const char *attribute, const void *val, int len) { int error = 0; |