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/config Pull up revision 1.51 (via patch, reque...



details:   https://anonhg.NetBSD.org/src/rev/7e9be308488e
branches:  netbsd-1-4
changeset: 471042:7e9be308488e
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 15:28:35 2000 +0000

description:
Pull up revision 1.51 (via patch, requested by is):
  Format string cleanup.

diffstat:

 usr.sbin/config/config.h |  15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 3f42250c747b -r 7e9be308488e usr.sbin/config/config.h
--- a/usr.sbin/config/config.h  Thu Oct 19 14:54:26 2000 +0000
+++ b/usr.sbin/config/config.h  Thu Oct 19 15:28:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h,v 1.41 1999/01/21 13:10:08 pk Exp $   */
+/*     $NetBSD: config.h,v 1.41.2.1 2000/10/19 15:28:35 he Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -60,6 +60,7 @@
 #else /* ...STDC */
 #define        __P(protos)     ()              /* traditional C preprocessor */    
 #endif /* ...STDC */
+#define __attribute__(x)
 #endif /* ...BSD */
 
 #if __STDC__
@@ -410,10 +411,14 @@
 void   *emalloc __P((size_t));
 void   *erealloc __P((void *, size_t));
 char   *sourcepath __P((const char *));
-void   warn __P((const char *, ...));                  /* immediate warns */
-void   error __P((const char *, ...));                 /* immediate errs */
-void   xerror __P((const char *, int, const char *, ...)); /* delayed errs */
-__dead void panic __P((const char *, ...));
+void   warn __P((const char *, ...))                   /* immediate warns */
+       __attribute__((__format__(__printf__, 1, 2)));
+void   error __P((const char *, ...))                  /* immediate errs */
+       __attribute__((__format__(__printf__, 1, 2)));
+void   xerror __P((const char *, int, const char *, ...)) /* delayed errs */
+       __attribute__((__format__(__printf__, 3, 4)));
+__dead void panic __P((const char *, ...))
+       __attribute__((__format__(__printf__, 1, 2)));
 struct nvlist *newnv __P((const char *, const char *, void *, int,
            struct nvlist *));
 void   nvfree __P((struct nvlist *));



Home | Main Index | Thread Index | Old Index