projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b299c6
)
detect format string bugs
author
Christian Grothoff
<christian@grothoff.org>
Wed, 4 May 2016 09:24:35 +0000
(09:24 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 4 May 2016 09:24:35 +0000
(09:24 +0000)
src/include/gnunet_common.h
patch
|
blob
|
history
diff --git
a/src/include/gnunet_common.h
b/src/include/gnunet_common.h
index 89b69278995dc3ca384e834b1dc449cc781fc823..855d151cdd013f1b4c79729059d1a49d835ee7e6 100644
(file)
--- a/
src/include/gnunet_common.h
+++ b/
src/include/gnunet_common.h
@@
-386,7
+386,8
@@
GNUNET_get_log_call_status (int caller_level,
* @param ... arguments for format string
*/
void
-GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message, ...);
+GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message, ...)
+ __attribute__ ((format (printf, 2, 3)));
/* from glib */
#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__)