summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-05-27 19:28:04 +0000
committerjhb <jhb@FreeBSD.org>2005-05-27 19:28:04 +0000
commite2d11cf4d44df5cebaebaafbedc7183804582ff5 (patch)
tree66e11a261047e4abc0d1e125fc209c68fe8b09d7
parent3c2fee413700cfbeb07182ccb4327ed76c1885a9 (diff)
downloadFreeBSD-src-e2d11cf4d44df5cebaebaafbedc7183804582ff5.zip
FreeBSD-src-e2d11cf4d44df5cebaebaafbedc7183804582ff5.tar.gz
Fix a warning by adding a missing 'const'.
MFC after: 1 week
-rw-r--r--sys/boot/i386/libi386/devicename.c2
-rw-r--r--sys/boot/i386/libi386/libi386.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/libi386/devicename.c b/sys/boot/i386/libi386/devicename.c
index 7ae45b1..fac0b83 100644
--- a/sys/boot/i386/libi386/devicename.c
+++ b/sys/boot/i386/libi386/devicename.c
@@ -230,7 +230,7 @@ i386_fmtdev(void *vdev)
* Set currdev to suit the value being supplied in (value)
*/
int
-i386_setcurrdev(struct env_var *ev, int flags, void *value)
+i386_setcurrdev(struct env_var *ev, int flags, const void *value)
{
struct i386_devdesc *ncurr;
int rv;
diff --git a/sys/boot/i386/libi386/libi386.h b/sys/boot/i386/libi386/libi386.h
index df61b64..7499576 100644
--- a/sys/boot/i386/libi386/libi386.h
+++ b/sys/boot/i386/libi386/libi386.h
@@ -59,7 +59,7 @@ struct i386_devdesc
int i386_getdev(void **vdev, const char *devspec, const char **path);
char *i386_fmtdev(void *vdev);
-int i386_setcurrdev(struct env_var *ev, int flags, void *value);
+int i386_setcurrdev(struct env_var *ev, int flags, const void *value);
extern struct devdesc currdev; /* our current device */
OpenPOWER on IntegriCloud