diff options
Diffstat (limited to 'usr.bin/tn3270')
-rw-r--r-- | usr.bin/tn3270/ascii/map3270.c | 6 | ||||
-rw-r--r-- | usr.bin/tn3270/tools/mkmake.y | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/tn3270/ascii/map3270.c b/usr.bin/tn3270/ascii/map3270.c index 8c8d5a6541f..8036684d5d4 100644 --- a/usr.bin/tn3270/ascii/map3270.c +++ b/usr.bin/tn3270/ascii/map3270.c @@ -1,4 +1,4 @@ -/* $OpenBSD: map3270.c,v 1.2 1996/06/26 05:41:10 deraadt Exp $ */ +/* $OpenBSD: map3270.c,v 1.3 2000/07/06 08:51:05 deraadt Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)map3270.c 4.2 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$OpenBSD: map3270.c,v 1.2 1996/06/26 05:41:10 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: map3270.c,v 1.3 2000/07/06 08:51:05 deraadt Exp $"; #endif /* not lint */ /* This program reads a description file, somewhat like /etc/termcap, @@ -96,7 +96,7 @@ typedef struct { char array[500]; /* character string */ } stringWithLength; -#define panic(s) { fprintf(stderr, s); exit(1); } +#define panic(s) { fprintf(stderr, "%s", s); exit(1); } static state firstentry = { 0, STATE_NULL, 0, 0 }; static state *headOfQueue = &firstentry; diff --git a/usr.bin/tn3270/tools/mkmake.y b/usr.bin/tn3270/tools/mkmake.y index 04ca817b773..ae1a4c1f954 100644 --- a/usr.bin/tn3270/tools/mkmake.y +++ b/usr.bin/tn3270/tools/mkmake.y @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)mkmake.y 4.2 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$Id: mkmake.y,v 1.1 1995/10/18 08:46:23 deraadt Exp $"; +static char rcsid[] = "$Id: mkmake.y,v 1.2 2000/07/06 08:51:06 deraadt Exp $"; #endif /* not lint */ typedef struct string { @@ -1045,7 +1045,7 @@ same_t *same; same_t *same2; for (visit(same, same2); !visited(same2); visit_next(same2)) { - printf(same2->string->string); + printf("%s", same2->string->string); } visit_end(); } @@ -1068,7 +1068,7 @@ do_dump() printf("%s =\t", same->string->string); for (visit(same->value_list, same2); !visited(same2); visit_next(same2)) { - printf(same2->string->string); + printf("%s", same2->string->string); } visit_end(); printf("\n"); @@ -1080,13 +1080,13 @@ do_dump() printf("\n%s:\t", same->string->string); for (visit(same->depend_list, same2); !visited(same2); visit_next(same2)) { - printf(same2->string->string); + printf("%s", same2->string->string); } visit_end(); printf("\n\t"); for (visit(same->action_list, same2); !visited(same2); visit_next(same2)) { - printf(same2->string->string); + printf("%s", same2->string->string); if (same2->string->string[0] == '\n') { printf("\t"); } |