aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/encoding/message.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-10-31 12:27:59 +0000
committerMartin Willi <martin@strongswan.org>2006-10-31 12:27:59 +0000
commitdb7ef62494fb6859df150e2b06b3ca91881d95af (patch)
treebd8d6e7e72ba0f27d9b34fa803d61eb243736208 /src/charon/encoding/message.c
parentde8b8a8c44c87130a2a5120a4c07262fa6806f6b (diff)
downloadstrongswan-db7ef62494fb6859df150e2b06b3ca91881d95af.tar.bz2
strongswan-db7ef62494fb6859df150e2b06b3ca91881d95af.tar.xz
better split up of library files "types.h" & "definitions.h"
centralized all printf specifier character definitions reuse of arginfo handlers more cleanups fixed more AMD64 issues added DEBUG_LEVEL compile flag to exclude DBGn() statements
Diffstat (limited to 'src/charon/encoding/message.c')
-rw-r--r--src/charon/encoding/message.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/charon/encoding/message.c b/src/charon/encoding/message.c
index d8f5efe7b..f1b92e934 100644
--- a/src/charon/encoding/message.c
+++ b/src/charon/encoding/message.c
@@ -28,7 +28,7 @@
#include "message.h"
-#include <types.h>
+#include <library.h>
#include <daemon.h>
#include <sa/ike_sa_id.h>
#include <encoding/generator.h>
@@ -589,23 +589,11 @@ static int print(FILE *stream, const struct printf_info *info,
}
/**
- * arginfo handler in printf()
- */
-static int print_arginfo(const struct printf_info *info, size_t n, int *argtypes)
-{
- if (n > 0)
- {
- argtypes[0] = PA_POINTER;
- }
- return 1;
-}
-
-/**
* register printf() handlers
*/
static void __attribute__ ((constructor))print_register()
{
- register_printf_function(MESSAGE_PRINTF_SPEC, print, print_arginfo);
+ register_printf_function(PRINTF_MESSAGE, print, arginfo_ptr);
}
/**