diff options
Diffstat (limited to 'src/charon/sa/child_sa.c')
-rw-r--r-- | src/charon/sa/child_sa.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/charon/sa/child_sa.c b/src/charon/sa/child_sa.c index 2f73e49d8..eac1ca6ee 100644 --- a/src/charon/sa/child_sa.c +++ b/src/charon/sa/child_sa.c @@ -857,23 +857,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(CHILD_SA_PRINTF_SPEC, print, print_arginfo); + register_printf_function(PRINTF_CHILD_SA, print, arginfo_ptr); } /** |