Source-Changes-HG archive

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

[src/trunk]: src/include Move fmtcheck() prototype to stdio.h. It makes more...



details:   https://anonhg.NetBSD.org/src/rev/5293358c3fb5
branches:  trunk
changeset: 499273:5293358c3fb5
user:      briggs <briggs%NetBSD.org@localhost>
date:      Wed Nov 15 15:44:05 2000 +0000

description:
Move fmtcheck() prototype to stdio.h.  It makes more sense to declare it
with the formatting functions with which it is meant to be used.  Thanks
to Klaus Klein for "encouraging" me to make this change.

diffstat:

 include/stdio.h  |  4 +++-
 include/stdlib.h |  5 +----
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 78629f73b487 -r 5293358c3fb5 include/stdio.h
--- a/include/stdio.h   Wed Nov 15 15:01:14 2000 +0000
+++ b/include/stdio.h   Wed Nov 15 15:44:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdio.h,v 1.38 2000/07/28 09:38:15 kleink Exp $        */
+/*     $NetBSD: stdio.h,v 1.39 2000/11/15 15:44:05 briggs Exp $        */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -362,6 +362,8 @@
            __attribute__((__format__(__scanf__, 1, 0)));
 int     vsscanf __P((const char *, const char *, _BSD_VA_LIST_))
            __attribute__((__format__(__scanf__, 2, 0)));
+__const char *fmtcheck __P((const char *, const char *))
+       __attribute__((__format_arg__(2)));
 __END_DECLS
 
 /*
diff -r 78629f73b487 -r 5293358c3fb5 include/stdlib.h
--- a/include/stdlib.h  Wed Nov 15 15:01:14 2000 +0000
+++ b/include/stdlib.h  Wed Nov 15 15:44:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdlib.h,v 1.49 2000/10/20 18:46:05 briggs Exp $       */
+/*     $NetBSD: stdlib.h,v 1.50 2000/11/15 15:44:05 briggs Exp $       */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -255,9 +255,6 @@
 void    setproctitle __P((const char *, ...))
            __attribute__((__format__(__printf__, 1, 2)));
 
-__const char *fmtcheck __P((const char *, const char *))
-       __attribute__((__format_arg__(2)));
-
 quad_t  qabs __P((quad_t));
 qdiv_t  qdiv __P((quad_t, quad_t));
 quad_t  strtoq __P((const char *, char **, int));



Home | Main Index | Thread Index | Old Index