From 9389b62e523c51269564d5bb13307c868baaf2e7 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 27 May 2005 19:28:04 +0000 Subject: [PATCH] Fix a warning by adding a missing 'const'. MFC after: 1 week --- sys/boot/i386/libi386/devicename.c | 2 +- sys/boot/i386/libi386/libi386.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/boot/i386/libi386/devicename.c b/sys/boot/i386/libi386/devicename.c index 7ae45b17a36d..fac0b8329df3 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 df61b642c881..749957689a14 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 */