summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-07-01 20:29:25 +0000
committerpeter <peter@FreeBSD.org>1999-07-01 20:29:25 +0000
commit6422c7e21bcbb4f6e46ab7a768a653533560bfc1 (patch)
tree35ad395c2d8e8f1e1a59837051312362ee1c8f07
parenta965ff325cabc8b1586415f206da9dbd5bf88d66 (diff)
downloadFreeBSD-src-6422c7e21bcbb4f6e46ab7a768a653533560bfc1.zip
FreeBSD-src-6422c7e21bcbb4f6e46ab7a768a653533560bfc1.tar.gz
Fix warnings on the Alpha.
-rw-r--r--sys/dev/syscons/syscons.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index eac6d4e..ed5483c 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.309 1999/06/26 11:00:17 peter Exp $
+ * $Id: syscons.c,v 1.310 1999/06/29 17:30:33 yokota Exp $
*/
#include "sc.h"
@@ -143,7 +143,9 @@ static int scparam(struct tty *tp, struct termios *t);
static void scstart(struct tty *tp);
static void scmousestart(struct tty *tp);
static void scinit(int unit, int flags);
+#if __i386__
static void scterm(int unit, int flags);
+#endif
static void scshutdown(int howto, void *arg);
static u_int scgetc(sc_softc_t *sc, u_int flags);
#define SCGETC_CN 1
@@ -361,7 +363,7 @@ sc_attach_unit(int unit, int flags)
/* register a shutdown callback for the kernel console */
if (sc_console_unit == unit)
- at_shutdown(scshutdown, (void *)unit, SHUTDOWN_PRE_SYNC);
+ at_shutdown(scshutdown, (void *)(uintptr_t)unit, SHUTDOWN_PRE_SYNC);
/*
* syscons's cdevsw must be registered from here. As syscons and
@@ -2417,6 +2419,7 @@ scan_esc(scr_stat *scp, u_char c)
int i, n;
int count;
+ i = n = 0;
sc = scp->sc;
if (scp->term.esc == 1) { /* seen ESC */
switch (c) {
@@ -3358,6 +3361,7 @@ scinit(int unit, int flags)
sc->flags |= SC_INIT_DONE;
}
+#if __i386__
static void
scterm(int unit, int flags)
{
@@ -3404,6 +3408,7 @@ scterm(int unit, int flags)
sc->keyboard = -1;
sc->adapter = -1;
}
+#endif
static void
scshutdown(int howto, void *arg)
OpenPOWER on IntegriCloud