Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.bin/tn3270/tools/mkastosc Pull up revision 1.10 (re...



details:   https://anonhg.NetBSD.org/src/rev/417c6364a49e
branches:  netbsd-1-6
changeset: 529611:417c6364a49e
user:      he <he%NetBSD.org@localhost>
date:      Sun Dec 01 12:22:42 2002 +0000

description:
Pull up revision 1.10 (requested by thorpej in ticket #821):
  Make the tn3270 host tools build on non-BSD systems.

diffstat:

 usr.bin/tn3270/tools/mkastosc/mkastosc.c |  18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diffs (49 lines):

diff -r 966c391118b2 -r 417c6364a49e usr.bin/tn3270/tools/mkastosc/mkastosc.c
--- a/usr.bin/tn3270/tools/mkastosc/mkastosc.c  Sun Dec 01 12:21:15 2002 +0000
+++ b/usr.bin/tn3270/tools/mkastosc/mkastosc.c  Sun Dec 01 12:22:42 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkastosc.c,v 1.8 2002/01/31 19:36:51 tv Exp $  */
+/*     $NetBSD: mkastosc.c,v 1.8.2.1 2002/12/01 12:22:42 he Exp $      */
 
 /*-
  * Copyright (c) 1988 The Regents of the University of California.
@@ -33,7 +33,10 @@
  * SUCH DAMAGE.
  */
 
-#include <sys/cdefs.h>
+#include <stdio.h>
+#include <string.h>
+#include <ctype.h>
+
 #if defined(__COPYRIGHT) && !defined(lint)
 __COPYRIGHT(
 "@(#) Copyright (c) 1988 The Regents of the University of California.\n\
@@ -44,15 +47,10 @@
 #if 0
 static char sccsid[] = "@(#)mkastosc.c 4.2 (Berkeley) 4/26/91";
 #else
-__RCSID("$NetBS$");
+__RCSID("$NetBSD: mkastosc.c,v 1.8.2.1 2002/12/01 12:22:42 he Exp $");
 #endif
 #endif /* not lint */
 
-#include <stdio.h>
-#include <string.h>
-#include <err.h>
-#include <ctype.h>
-
 #include "../general/general.h"
 #include "../ctlr/function.h"
 
@@ -124,8 +122,8 @@
     for (Pt = tbl, asciicode = 0; Pt <= tbl+highestof(tbl); Pt++, asciicode++) {
        if (Pt->used == 0) {
            if (isprint(asciicode) && (asciicode != ' ')) {
-               warnx("Unable to produce scancode sequence for"
-                   " ASCII character [%c]!", asciicode);
+               fprintf(stderr, "mkastosc: Unable to produce scancode sequence"
+                   " for ASCII character [%c]!", asciicode);
            }
            printf("\t{ 0, 0, undefined, 0 },\t");
        } else {



Home | Main Index | Thread Index | Old Index