Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/stand/newdisk WARNSfy to avoid further botch.
details: https://anonhg.NetBSD.org/src/rev/5ba09a6bde3a
branches: trunk
changeset: 764788:5ba09a6bde3a
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed May 04 11:44:25 2011 +0000
description:
WARNSfy to avoid further botch.
diffstat:
sys/arch/x68k/stand/newdisk/Makefile | 3 ++-
sys/arch/x68k/stand/newdisk/newdisk.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r 0f5d66cf1984 -r 5ba09a6bde3a sys/arch/x68k/stand/newdisk/Makefile
--- a/sys/arch/x68k/stand/newdisk/Makefile Wed May 04 04:33:37 2011 +0000
+++ b/sys/arch/x68k/stand/newdisk/Makefile Wed May 04 11:44:25 2011 +0000
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2001/12/12 01:49:56 tv Exp $
+# $NetBSD: Makefile,v 1.3 2011/05/04 11:44:25 tsutsui Exp $
+WARNS?= 4
PROG= newdisk
CPPFLAGS+= -DMBOOT=\"/usr/mdec/mboot\"
DPADD+= ${LIBUTIL}
diff -r 0f5d66cf1984 -r 5ba09a6bde3a sys/arch/x68k/stand/newdisk/newdisk.c
--- a/sys/arch/x68k/stand/newdisk/newdisk.c Wed May 04 04:33:37 2011 +0000
+++ b/sys/arch/x68k/stand/newdisk/newdisk.c Wed May 04 11:44:25 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: newdisk.c,v 1.8 2011/04/29 06:00:33 isaki Exp $ */
+/* $NetBSD: newdisk.c,v 1.9 2011/05/04 11:44:25 tsutsui Exp $ */
/*-
* Copyright (c) 1999 Minoura Makoto
@@ -41,14 +41,16 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <err.h>
#include <fcntl.h>
#include <unistd.h>
#include <util.h>
#include <sys/param.h>
#include <sys/disklabel.h>
#include <sys/dkio.h>
+#include <sys/ioctl.h>
-char *mboot = MBOOT;
+const char *mboot = MBOOT;
char dev[MAXPATHLEN];
char buf[4096 + 1];
Home |
Main Index |
Thread Index |
Old Index