summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-18 21:52:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:17 -0500
commitaecd9827c61cb5bc2c1f3dab784066c0d010d1d7 (patch)
tree278ff71437e1398595010c2f4ce8fd09a134fddf /source4/include
parentbade0ad9098153c26ec9a0f85e0a6e36b038b028 (diff)
downloadsamba-aecd9827c61cb5bc2c1f3dab784066c0d010d1d7.tar.gz
samba-aecd9827c61cb5bc2c1f3dab784066c0d010d1d7.tar.bz2
samba-aecd9827c61cb5bc2c1f3dab784066c0d010d1d7.zip
r13019: Again protect us against format string mismatches, with the new split
out proto headers. The reason this is done in this way is that the attribute must be on the prototype, not the actual function defintion. Hence the macros which expand to nothing in the C file, but expand to an __attribute__ in the prototype header. Andrew Bartlett (This used to be commit a88933668f908a398bb0d8bc7dc39c96cee40de6)
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/includes.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h
index 29c868ff39..ed8de0607d 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -112,12 +112,13 @@ struct ipv4_addr {
#include "auth/credentials/credentials.h"
#include "libcli/nbt/libnbt.h"
-/***** automatically generated prototypes *****/
-#include "include/proto.h"
-#include "basic.h"
#undef _PRINTF_ATTRIBUTE
#define _PRINTF_ATTRIBUTE(a1, a2)
+/***** automatically generated prototypes *****/
+#include "basic.h"
+#include "include/proto.h"
+
/* String routines */
#include "safe_string.h"