test: fix enum_if compilation
Signed-off-by: Luca Bruno <lucab@debian.org>
This commit is contained in:
parent
73c950b99b
commit
6feab20733
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue