forked from premiere/premiere-libtorrent
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;
|
||||
error_code ec;
|
||||
|
||||
address def_gw = get_default_gateway(ec);
|
||||
address def_gw = get_default_gateway(ios, ec);
|
||||
if (ec)
|
||||
{
|
||||
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("=========== Routes ===========\n");
|
||||
std::vector<ip_route> routes = enum_routes(ec);
|
||||
std::vector<ip_route> routes = enum_routes(ios, ec);
|
||||
if (ec)
|
||||
{
|
||||
printf("%s\n", ec.message().c_str());
|
||||
|
|
Loading…
Reference in New Issue