1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-30 00:00:15 +01:00

fix bug in the detection of the multi-kernel mode

This commit is contained in:
Stefan Lankes 2017-04-23 00:28:11 +02:00
parent f4d566c161
commit 83f185980a
2 changed files with 5 additions and 5 deletions

View file

@ -107,7 +107,7 @@ int is_proxy(void)
{
// search in the command line for the "proxy" hint
char* found = strstr((char*) (size_t) mb_info->cmdline, "-proxy");
if (!found)
if (found)
return 1;
}
return 0;

View file

@ -253,10 +253,10 @@ success:
ip_counter++;
}
}
if (!ip_2_ip4(&default_netif.ip_addr)->addr)
return -ENODEV;
if (!ip_2_ip4(&default_netif.ip_addr)->addr)
return -ENODEV;
}
return 0;
}
@ -406,7 +406,7 @@ static int initd(void* arg)
// initialize network
err = init_netifs();
if ((err != 0) || is_proxy())
if ((err != 0) || !is_proxy())
{
char* dummy[] = {"app_name", NULL};