From ad6ddb77671a5780eefdb973075656e601890d74 Mon Sep 17 00:00:00 2001 From: dfr Date: Sat, 26 Sep 1998 10:51:38 +0000 Subject: * Add old UFS compatibility code to alpha/boot1. * Fix a raft of warnings, printf and otherwise. * Allocate the correct amount in mod_searchmodule to prevent an overflow. * Fix the makefiles so they work outside my home directory (oops). --- sys/boot/ofw/libofw/devicename.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/boot/ofw') diff --git a/sys/boot/ofw/libofw/devicename.c b/sys/boot/ofw/libofw/devicename.c index 5d1f604..dcd07ed 100644 --- a/sys/boot/ofw/libofw/devicename.c +++ b/sys/boot/ofw/libofw/devicename.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: devicename.c,v 1.1.1.1 1998/08/21 03:17:42 msmith Exp $ + * $Id: devicename.c,v 1.2 1998/08/22 10:31:01 dfr Exp $ */ #include @@ -32,7 +32,7 @@ #include "bootstrap.h" #include "libalpha.h" -static int alpha_parsedev(struct alpha_devdesc **dev, char *devspec, char **path); +static int alpha_parsedev(struct alpha_devdesc **dev, const char *devspec, const char **path); /* * Point (dev) at an allocated device specifier for the device matching the @@ -40,7 +40,7 @@ static int alpha_parsedev(struct alpha_devdesc **dev, char *devspec, char **path * use that. If not, use the default device. */ int -alpha_getdev(void **vdev, char *devspec, char **path) +alpha_getdev(void **vdev, const char *devspec, const char **path) { struct alpha_devdesc **dev = (struct alpha_devdesc **)vdev; int rv; @@ -80,12 +80,13 @@ alpha_getdev(void **vdev, char *devspec, char **path) * */ static int -alpha_parsedev(struct alpha_devdesc **dev, char *devspec, char **path) +alpha_parsedev(struct alpha_devdesc **dev, const char *devspec, const char **path) { struct alpha_devdesc *idev; struct devsw *dv; int i, unit, slice, partition, err; - char *cp, *np; + char *cp; + const char *np; /* minimum length check */ if (strlen(devspec) < 2) -- cgit v1.1