Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/netpgp/dist/src Add __printflike.



details:   https://anonhg.NetBSD.org/src/rev/0f4feff887e9
branches:  trunk
changeset: 792534:0f4feff887e9
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Jan 06 21:15:15 2014 +0000

description:
Add __printflike.

diffstat:

 crypto/external/bsd/netpgp/dist/src/libbn/misc.h          |  3 ++-
 crypto/external/bsd/netpgp/dist/src/libverify/libverify.c |  2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r c5d93454aa35 -r 0f4feff887e9 crypto/external/bsd/netpgp/dist/src/libbn/misc.h
--- a/crypto/external/bsd/netpgp/dist/src/libbn/misc.h  Mon Jan 06 21:12:19 2014 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/libbn/misc.h  Mon Jan 06 21:15:15 2014 +0000
@@ -45,7 +45,8 @@
 void netpgp_deallocate(void */*ptr*/, size_t /*size*/);
 
 #ifndef _KERNEL
-void logmessage(const int /*level*/, const char */*fmt*/, ...);
+void logmessage(const int /*level*/, const char */*fmt*/, ...)
+    __printflike(2, 3);
 #endif
 
 __END_DECLS
diff -r c5d93454aa35 -r 0f4feff887e9 crypto/external/bsd/netpgp/dist/src/libverify/libverify.c
--- a/crypto/external/bsd/netpgp/dist/src/libverify/libverify.c Mon Jan 06 21:12:19 2014 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/libverify/libverify.c Mon Jan 06 21:15:15 2014 +0000
@@ -2046,7 +2046,7 @@
 }
 
 /* create a filename, read it, and then parse according to "op" */
-static int
+__printflike(3, 4) static int
 read_binary_file(pgpv_t *pgp, const char *op, const char *fmt, ...)
 {
        va_list args;



Home | Main Index | Thread Index | Old Index