Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/usr.bin WARNSfy.
details: https://anonhg.NetBSD.org/src/rev/5c36fca5a064
branches: trunk
changeset: 765116:5c36fca5a064
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu May 19 21:26:38 2011 +0000
description:
WARNSfy.
XXX: rtcalarm/rtcalarm.c refers obsolete /dev/pow0
diffstat:
sys/arch/x68k/usr.bin/bellctrl/Makefile | 3 +-
sys/arch/x68k/usr.bin/bellctrl/bellctrl.c | 21 +-
sys/arch/x68k/usr.bin/loadfont/Makefile | 3 +-
sys/arch/x68k/usr.bin/loadkmap/Makefile | 3 +-
sys/arch/x68k/usr.bin/loadkmap/ascii_kmap.c | 440 ++++++++++++++--------------
sys/arch/x68k/usr.bin/loadkmap/jis_kmap.c | 440 ++++++++++++++--------------
sys/arch/x68k/usr.bin/loadkmap/loadkmap.c | 6 +-
sys/arch/x68k/usr.bin/palette/Makefile | 3 +-
sys/arch/x68k/usr.bin/palette/palette.c | 5 +-
sys/arch/x68k/usr.bin/rtcalarm/Makefile | 3 +-
sys/arch/x68k/usr.bin/rtcalarm/rtcalarm.c | 35 +-
sys/arch/x68k/usr.bin/tvctrl/Makefile | 3 +-
12 files changed, 488 insertions(+), 477 deletions(-)
diffs (truncated from 1237 to 300 lines):
diff -r 80cf5f0862d2 -r 5c36fca5a064 sys/arch/x68k/usr.bin/bellctrl/Makefile
--- a/sys/arch/x68k/usr.bin/bellctrl/Makefile Thu May 19 21:24:55 2011 +0000
+++ b/sys/arch/x68k/usr.bin/bellctrl/Makefile Thu May 19 21:26:38 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2001/12/12 01:49:59 tv Exp $
+# $NetBSD: Makefile,v 1.9 2011/05/19 21:26:38 tsutsui Exp $
#
# Makefile for bellctrl
@@ -10,6 +10,7 @@
dd bs=1 skip=32 count=52 if=sample.aout of=$@
rm sample.aout
+WARNS?= 4
PROG= bellctrl
NOMAN= # defined
CPPFLAGS+=-I${.CURDIR}/../../..
diff -r 80cf5f0862d2 -r 5c36fca5a064 sys/arch/x68k/usr.bin/bellctrl/bellctrl.c
--- a/sys/arch/x68k/usr.bin/bellctrl/bellctrl.c Thu May 19 21:24:55 2011 +0000
+++ b/sys/arch/x68k/usr.bin/bellctrl/bellctrl.c Thu May 19 21:26:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bellctrl.c,v 1.11 2006/08/04 02:30:48 mhitch Exp $ */
+/* $NetBSD: bellctrl.c,v 1.12 2011/05/19 21:26:39 tsutsui Exp $ */
/*
* bellctrl - OPM bell controller (for NetBSD/X680x0)
@@ -6,11 +6,12 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: bellctrl.c,v 1.11 2006/08/04 02:30:48 mhitch Exp $");
+__RCSID("$NetBSD: bellctrl.c,v 1.12 2011/05/19 21:26:39 tsutsui Exp $");
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <sys/file.h>
@@ -35,18 +36,18 @@
};
/* function prototype */
-int is_number(char *, int);
+int is_number(const char *, int);
void set_bell_vol(int);
void set_bell_pitch(int);
void set_bell_dur(int);
-void set_voice_param(char *, int);
+void set_voice_param(const char *, int);
void set_bell_param(void);
-int usage(char *, char *);
+int usage(const char *, const char *);
int
main(int argc, char **argv)
{
- register char *arg;
+ const char *arg;
int percent;
int i;
@@ -153,9 +154,9 @@
}
int
-is_number(char *arg, int maximum)
+is_number(const char *arg, int maximum)
{
- register char *p;
+ const char *p;
if (arg[0] == '-' && arg[1] == '1' && arg[2] == '\0')
return 1;
@@ -189,7 +190,7 @@
}
void
-set_voice_param(char *path, int flag)
+set_voice_param(const char *path, int flag)
{
int fd;
@@ -238,7 +239,7 @@
}
int
-usage(char *fmt, char *arg)
+usage(const char *fmt, const char *arg)
{
if (fmt) {
fprintf(stderr, "%s: ", progName);
diff -r 80cf5f0862d2 -r 5c36fca5a064 sys/arch/x68k/usr.bin/loadfont/Makefile
--- a/sys/arch/x68k/usr.bin/loadfont/Makefile Thu May 19 21:24:55 2011 +0000
+++ b/sys/arch/x68k/usr.bin/loadfont/Makefile Thu May 19 21:26:38 2011 +0000
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2001/12/12 01:49:59 tv Exp $
+# $NetBSD: Makefile,v 1.6 2011/05/19 21:26:39 tsutsui Exp $
+WARNS?= 4
PROG=loadfont
NOMAN= # defined
diff -r 80cf5f0862d2 -r 5c36fca5a064 sys/arch/x68k/usr.bin/loadkmap/Makefile
--- a/sys/arch/x68k/usr.bin/loadkmap/Makefile Thu May 19 21:24:55 2011 +0000
+++ b/sys/arch/x68k/usr.bin/loadkmap/Makefile Thu May 19 21:26:38 2011 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2005/12/11 12:19:45 christos Exp $
+# $NetBSD: Makefile,v 1.12 2011/05/19 21:26:39 tsutsui Exp $
# Makefile for loadkmap
+WARNS?= 4
PROG= loadkmap
NOMAN= # defined
FILES= ascii_kmap jis_kmap
diff -r 80cf5f0862d2 -r 5c36fca5a064 sys/arch/x68k/usr.bin/loadkmap/ascii_kmap.c
--- a/sys/arch/x68k/usr.bin/loadkmap/ascii_kmap.c Thu May 19 21:24:55 2011 +0000
+++ b/sys/arch/x68k/usr.bin/loadkmap/ascii_kmap.c Thu May 19 21:26:38 2011 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: ascii_kmap.c,v 1.6 2005/12/11 12:19:45 christos Exp $ */
+/* $NetBSD: ascii_kmap.c,v 1.7 2011/05/19 21:26:39 tsutsui Exp $ */
/* from: arch/amiga/dev/kbdmap.c */
/* modified for X680x0 by Masaru Oki */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ascii_kmap.c,v 1.6 2005/12/11 12:19:45 christos Exp $");
+__RCSID("$NetBSD: ascii_kmap.c,v 1.7 2011/05/19 21:26:39 tsutsui Exp $");
#include <machine/kbdmap.h>
@@ -19,228 +19,228 @@
struct kbdmap ascii_kbdmap = {
/* normal map */
{
- 0, 0, /* 0x00 */
- 0, ESC,
- 0, '1',
- 0, '2',
- 0, '3',
- 0, '4',
- 0, '5',
- 0, '6',
- 0, '7', /* 0x08 */
- 0, '8',
- 0, '9',
- 0, '0',
- 0, '-',
- 0, '=',
- 0, '\\',
- 0, DEL, /* really BS, DEL & BS swapped */
- 0, '\t', /* 0x10 */
- C, 'q',
- C, 'w',
- C, 'e',
- C, 'r',
- C, 't',
- C, 'y',
- C, 'u',
- C, 'i', /* 0x18 */
- C, 'o',
- C, 'p',
- 0, '[',
- 0, ']',
- 0, '\r', /* return */
- C, 'a',
- C, 's',
- C, 'd', /* 0x20 */
- C, 'f',
- C, 'g',
- C, 'h',
- C, 'j',
- C, 'k',
- C, 'l',
- 0, ';',
- 0, '\'', /* 0x28 */
- 0, '`',
- C, 'z',
- C, 'x',
- C, 'c',
- C, 'v',
- C, 'b',
- C, 'n',
- C, 'm', /* 0x30 */
- 0, ',',
- 0, '.',
- 0, '/',
- 0, '_',
- 0, ' ',
- 0, 0, /* HOME */
- 0, '\b', /* really DEL, BS & DEL swapped */
- 0, 0, /* 0x38 ROLLUP */
- 0, 0, /* ROLLDOWN */
- 0, 0, /* UNDO */
- S, 0x0C, /* CRSR LEFT */
- S, 0x00, /* now it gets hairy.. CRSR UP */
- S, 0x08, /* CRSR RIGHT */
- S, 0x04, /* CRSR DOWN */
- K, 0, /* CLR */
- K, '/', /* 0x40 */
- K, '*',
- K, '-',
- K, '7',
- K, '8',
- K, '9',
- K, '+',
- K, '4',
- K, '5', /* 0x48 */
- K, '6',
- K, '=',
- K, '1',
- K, '2',
- K, '3',
- K, '\r', /* enter */
- K, '0',
- K, ',', /* 0x50 */
- K, '.',
- 0, 0,
- 0, 0,
- S, 0x42, /* HELP */
- 0, 0,
- 0, 0,
- 0, 0,
- 0, 0, /* 0x58 */
- 0, 0,
- 0, 0,
- 0, 0,
- 0, 0,
- 0, 0,
- 0, 0,
- 0, 0,
- 0, 0, /* 0x60 */
- 0, 0,
- 0, 0,
- S, 0x10, /* F1 */
- S, 0x15, /* F2 */
- S, 0x1A, /* F3 */
- S, 0x1F, /* F4 */
- S, 0x24, /* F5 */
- S, 0x29, /* F6 */
- S, 0x2E, /* F7 */
- S, 0x33, /* 0x58 F8 */
- S, 0x38, /* F9 */
- S, 0x3D, /* F10 */
+ {0, 0}, /* 0x00 */
+ {0, ESC},
+ {0, '1'},
+ {0, '2'},
+ {0, '3'},
+ {0, '4'},
+ {0, '5'},
+ {0, '6'},
+ {0, '7'}, /* 0x08 */
+ {0, '8'},
+ {0, '9'},
+ {0, '0'},
+ {0, '-'},
+ {0, '='},
+ {0, '\\'},
+ {0, DEL}, /* really BS, DEL & BS swapped */
+ {0, '\t'}, /* 0x10 */
+ {C, 'q'},
+ {C, 'w'},
+ {C, 'e'},
+ {C, 'r'},
+ {C, 't'},
+ {C, 'y'},
+ {C, 'u'},
+ {C, 'i'}, /* 0x18 */
+ {C, 'o'},
+ {C, 'p'},
+ {0, '['},
+ {0, ']'},
+ {0, '\r'}, /* return */
+ {C, 'a'},
+ {C, 's'},
+ {C, 'd'}, /* 0x20 */
+ {C, 'f'},
+ {C, 'g'},
+ {C, 'h'},
+ {C, 'j'},
+ {C, 'k'},
+ {C, 'l'},
+ {0, ';'},
+ {0, '\''}, /* 0x28 */
+ {0, '`'},
+ {C, 'z'},
+ {C, 'x'},
+ {C, 'c'},
+ {C, 'v'},
+ {C, 'b'},
+ {C, 'n'},
+ {C, 'm'}, /* 0x30 */
+ {0, ','},
+ {0, '.'},
+ {0, '/'},
+ {0, '_'},
+ {0, ' '},
+ {0, 0}, /* HOME */
+ {0, '\b'}, /* really DEL, BS & DEL swapped */
Home |
Main Index |
Thread Index |
Old Index