Index: sys/boot/userboot/userboot/devicename.c =================================================================== --- sys/boot/userboot/userboot/devicename.c +++ sys/boot/userboot/userboot/devicename.c @@ -91,7 +91,7 @@ struct disk_devdesc *idev; struct devsw *dv; int i, unit, err; - char *cp; + const char *cp; const char *np; /* minimum length check */ @@ -126,7 +126,7 @@ unit = 0; if (*np && (*np != ':')) { - unit = strtol(np, &cp, 0); /* get unit number if present */ + unit = strtol(np, (char **)&cp, 0); /* get unit number if present */ if (cp == np) { err = EUNIT; goto fail;