diff options
author | Martin Willi <martin@strongswan.org> | 2006-10-31 12:27:59 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-10-31 12:27:59 +0000 |
commit | db7ef62494fb6859df150e2b06b3ca91881d95af (patch) | |
tree | bd8d6e7e72ba0f27d9b34fa803d61eb243736208 /src/charon/encoding/message.c | |
parent | de8b8a8c44c87130a2a5120a4c07262fa6806f6b (diff) | |
download | strongswan-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.c | 16 |
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); } /** |