test: fix enum_if compilation

Signed-off-by: Luca Bruno <lucab@debian.org>
This commit is contained in:
Luca Bruno 2016-01-02 23:23:14 +01:00
parent 73c950b99b
commit 6feab20733
No known key found for this signature in database
GPG Key ID: A9834A2252078E4E
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ int main()
io_service ios; io_service ios;
error_code ec; error_code ec;
address def_gw = get_default_gateway(ec); address def_gw = get_default_gateway(ios, ec);
if (ec) if (ec)
{ {
fprintf(stderr, "%s\n", ec.message().c_str()); fprintf(stderr, "%s\n", ec.message().c_str());
@ -52,7 +52,7 @@ int main()
printf("Default gateway: %s\n", def_gw.to_string(ec).c_str()); printf("Default gateway: %s\n", def_gw.to_string(ec).c_str());
printf("=========== Routes ===========\n"); printf("=========== Routes ===========\n");
std::vector<ip_route> routes = enum_routes(ec); std::vector<ip_route> routes = enum_routes(ios, ec);
if (ec) if (ec)
{ {
printf("%s\n", ec.message().c_str()); printf("%s\n", ec.message().c_str());