summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-09-26 10:51:38 +0000
committerdfr <dfr@FreeBSD.org>1998-09-26 10:51:38 +0000
commitad6ddb77671a5780eefdb973075656e601890d74 (patch)
tree7ee815e87abf339583a4b840f14159bc49a21714 /sys/boot/ofw
parent236ad5eb3ca90664e90a383de91faa975d35b8fc (diff)
downloadFreeBSD-src-ad6ddb77671a5780eefdb973075656e601890d74.zip
FreeBSD-src-ad6ddb77671a5780eefdb973075656e601890d74.tar.gz
* 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).
Diffstat (limited to 'sys/boot/ofw')
-rw-r--r--sys/boot/ofw/libofw/devicename.c11
1 files changed, 6 insertions, 5 deletions
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 <stand.h>
@@ -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)
OpenPOWER on IntegriCloud