aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/host.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-07-13 11:38:29 +0200
committerMartin Willi <martin@revosec.ch>2012-07-13 13:23:29 +0200
commit1b40b74de032b36c199c4c65016e4736c09b6c81 (patch)
tree69890bf5598be303bdbe721d21eca840434a513e /src/libstrongswan/utils/host.c
parent549eba30abf99e88a7a197ce80aebf9d91e78e83 (diff)
downloadstrongswan-1b40b74de032b36c199c4c65016e4736c09b6c81.tar.bz2
strongswan-1b40b74de032b36c199c4c65016e4736c09b6c81.tar.xz
Pass opaque data to printf hooks and print_in_hook()
Diffstat (limited to 'src/libstrongswan/utils/host.c')
-rw-r--r--src/libstrongswan/utils/host.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstrongswan/utils/host.c b/src/libstrongswan/utils/host.c
index d3020a5d0..0f40a0dd4 100644
--- a/src/libstrongswan/utils/host.c
+++ b/src/libstrongswan/utils/host.c
@@ -100,7 +100,7 @@ METHOD(host_t, is_anyaddr, bool,
/**
* Described in header.
*/
-int host_printf_hook(char *dst, size_t dstlen, printf_hook_spec_t *spec,
+int host_printf_hook(printf_hook_data_t *data, printf_hook_spec_t *spec,
const void *const *args)
{
private_host_t *this = *((private_host_t**)(args[0]));
@@ -152,9 +152,9 @@ int host_printf_hook(char *dst, size_t dstlen, printf_hook_spec_t *spec,
}
if (spec->minus)
{
- return print_in_hook(dst, dstlen, "%-*s", spec->width, buffer);
+ return print_in_hook(data, "%-*s", spec->width, buffer);
}
- return print_in_hook(dst, dstlen, "%*s", spec->width, buffer);
+ return print_in_hook(data, "%*s", spec->width, buffer);
}
METHOD(host_t, get_address, chunk_t,