Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/tn3270 Use fmt string with printf, from OpenBSD.



details:   https://anonhg.NetBSD.org/src/rev/bf5cb80646fa
branches:  trunk
changeset: 494448:bf5cb80646fa
user:      ad <ad%NetBSD.org@localhost>
date:      Thu Jul 06 14:30:08 2000 +0000

description:
Use fmt string with printf, from OpenBSD.

diffstat:

 usr.bin/tn3270/ascii/map3270.c       |   6 +++---
 usr.bin/tn3270/tools/mkmake/mkmake.y |  12 ++++++------
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (80 lines):

diff -r 20e4e047be0c -r bf5cb80646fa usr.bin/tn3270/ascii/map3270.c
--- a/usr.bin/tn3270/ascii/map3270.c    Thu Jul 06 14:21:47 2000 +0000
+++ b/usr.bin/tn3270/ascii/map3270.c    Thu Jul 06 14:30:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: map3270.c,v 1.7 1998/11/06 20:03:08 christos Exp $     */
+/*     $NetBSD: map3270.c,v 1.8 2000/07/06 14:30:08 ad Exp $   */
 
 /*-
  * Copyright (c) 1988 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)map3270.c  4.2 (Berkeley) 4/26/91";
 #else
-__RCSID("$NetBSD: map3270.c,v 1.7 1998/11/06 20:03:08 christos Exp $");
+__RCSID("$NetBSD: map3270.c,v 1.8 2000/07/06 14:30:08 ad Exp $");
 #endif
 #endif /* not lint */
 
@@ -103,7 +103,7 @@
     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 -r 20e4e047be0c -r bf5cb80646fa usr.bin/tn3270/tools/mkmake/mkmake.y
--- a/usr.bin/tn3270/tools/mkmake/mkmake.y      Thu Jul 06 14:21:47 2000 +0000
+++ b/usr.bin/tn3270/tools/mkmake/mkmake.y      Thu Jul 06 14:30:08 2000 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: mkmake.y,v 1.7 1998/05/07 05:26:35 enami Exp $ */
+/*     $NetBSD: mkmake.y,v 1.8 2000/07/06 14:30:09 ad Exp $    */
 /*-
  * Copyright (c) 1988 The Regents of the University of California.
  * All rights reserved.
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)mkmake.y   4.2 (Berkeley) 4/26/91";
 #else
-__RCSID("$NetBSD: mkmake.y,v 1.7 1998/05/07 05:26:35 enami Exp $");
+__RCSID("$NetBSD: mkmake.y,v 1.8 2000/07/06 14:30:09 ad Exp $");
 #endif
 #endif /* not lint */
 
@@ -1085,7 +1085,7 @@
     same_t *same2;
 
     for (visit(same, same2); !visited(same2); visit_next(same2)) {
-       printf(same2->string->string);
+       printf("%s", same2->string->string);
     }
     visit_end();
 }
@@ -1109,7 +1109,7 @@
        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");
@@ -1121,13 +1121,13 @@
        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");
            }



Home | Main Index | Thread Index | Old Index