Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.sbin/gspa/gspa Pull up revision 1.7 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/519321d3e4a8
branches:  netbsd-1-4
changeset: 471125:519321d3e4a8
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 17:05:07 2000 +0000

description:
Pull up revision 1.7 (requested by he):
  Format string cleanup.

diffstat:

 usr.sbin/gspa/gspa/gsp_ass.h |  8 +++++---
 usr.sbin/gspa/gspa/gspa.c    |  6 +++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r faaf7d85dd51 -r 519321d3e4a8 usr.sbin/gspa/gspa/gsp_ass.h
--- a/usr.sbin/gspa/gspa/gsp_ass.h      Thu Oct 19 17:05:04 2000 +0000
+++ b/usr.sbin/gspa/gspa/gsp_ass.h      Thu Oct 19 17:05:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gsp_ass.h,v 1.3 1997/10/17 06:58:49 lukem Exp $        */
+/*     $NetBSD: gsp_ass.h,v 1.3.4.1 2000/10/19 17:05:07 he Exp $       */
 /*
  * GSP assembler - definitions
  *
@@ -145,8 +145,10 @@
 void listing(void);
 symbol lookup(char *id, bool makeit);
 expr num_expr(int);
-void p1err(char *fmt, ...);
-void perr(char *fmt, ...);
+void p1err(char *fmt, ...)
+       __attribute__((__format__(__printf__, 1, 2)));
+void perr(char *fmt, ...)
+       __attribute__((__format__(__printf__, 1, 2)));
 void pseudo(int code, operand operands);
 void push_input(char *fn);
 void putcode(u_int16_t *, int);
diff -r faaf7d85dd51 -r 519321d3e4a8 usr.sbin/gspa/gspa/gspa.c
--- a/usr.sbin/gspa/gspa/gspa.c Thu Oct 19 17:05:04 2000 +0000
+++ b/usr.sbin/gspa/gspa/gspa.c Thu Oct 19 17:05:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gspa.c,v 1.4 1998/04/09 00:32:40 tv Exp $      */
+/*     $NetBSD: gspa.c,v 1.4.2.1 2000/10/19 17:05:11 he Exp $  */
 /*
  * GSP assembler main program
  *
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: gspa.c,v 1.4 1998/04/09 00:32:40 tv Exp $");
+__RCSID("$NetBSD: gspa.c,v 1.4.2.1 2000/10/19 17:05:11 he Exp $");
 #endif
 
 #include <sys/param.h>
@@ -265,7 +265,7 @@
 yyerror(char *err)
 {
 
-       perr(err);
+       perr("%s", err);
        longjmp(synerrjmp, 1);
 }
 



Home | Main Index | Thread Index | Old Index