Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dist Correct a prior patch by moving __p...



details:   https://anonhg.NetBSD.org/src/rev/f1ea264aaa82
branches:  trunk
changeset: 813584:f1ea264aaa82
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Feb 04 16:58:11 2016 +0000

description:
Correct a prior patch by moving __printflike marking from the .c files
to the .h ones.

diffstat:

 external/cddl/osnet/dist/common/ctf/ctf_decl.c        |  2 +-
 external/cddl/osnet/dist/common/ctf/ctf_impl.h        |  4 ++--
 external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c |  2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 296a1bb24d1a -r f1ea264aaa82 external/cddl/osnet/dist/common/ctf/ctf_decl.c
--- a/external/cddl/osnet/dist/common/ctf/ctf_decl.c    Thu Feb 04 16:48:34 2016 +0000
+++ b/external/cddl/osnet/dist/common/ctf/ctf_decl.c    Thu Feb 04 16:58:11 2016 +0000
@@ -171,7 +171,7 @@
 }
 
 /*PRINTFLIKE2*/
-void __printflike(2, 3)
+void
 ctf_decl_sprintf(ctf_decl_t *cd, const char *format, ...)
 {
        size_t len = (size_t)(cd->cd_end - cd->cd_ptr);
diff -r 296a1bb24d1a -r f1ea264aaa82 external/cddl/osnet/dist/common/ctf/ctf_impl.h
--- a/external/cddl/osnet/dist/common/ctf/ctf_impl.h    Thu Feb 04 16:48:34 2016 +0000
+++ b/external/cddl/osnet/dist/common/ctf/ctf_impl.h    Thu Feb 04 16:58:11 2016 +0000
@@ -303,7 +303,7 @@
 extern void ctf_decl_init(ctf_decl_t *, char *, size_t);
 extern void ctf_decl_fini(ctf_decl_t *);
 extern void ctf_decl_push(ctf_decl_t *, ctf_file_t *, ctf_id_t);
-extern void ctf_decl_sprintf(ctf_decl_t *, const char *, ...);
+extern void ctf_decl_sprintf(ctf_decl_t *, const char *, ...) __printflike(2,3);
 
 extern const char *ctf_strraw(ctf_file_t *, uint_t);
 extern const char *ctf_strptr(ctf_file_t *, uint_t);
@@ -323,7 +323,7 @@
 
 extern char *ctf_strdup(const char *);
 extern const char *ctf_strerror(int);
-extern void ctf_dprintf(const char *, ...);
+extern void ctf_dprintf(const char *, ...) __printflike(1, 2);
 
 extern void *ctf_zopen(int *);
 
diff -r 296a1bb24d1a -r f1ea264aaa82 external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c
--- a/external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c     Thu Feb 04 16:48:34 2016 +0000
+++ b/external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c     Thu Feb 04 16:58:11 2016 +0000
@@ -73,7 +73,7 @@
 }
 
 /*PRINTFLIKE1*/
-void __printflike(1, 2)
+void
 ctf_dprintf(const char *format, ...)
 {
        if (_libctf_debug) {



Home | Main Index | Thread Index | Old Index