mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-16 12:53:17 +00:00
Remove warning for \!LINUX
This commit is contained in:
parent
5c9ff9ba06
commit
4d079b95f2
|
@ -181,6 +181,9 @@ int
|
||||||
tun_setip(const char *ip)
|
tun_setip(const char *ip)
|
||||||
{
|
{
|
||||||
char cmdline[512];
|
char cmdline[512];
|
||||||
|
#ifndef LINUX
|
||||||
|
int r;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (inet_addr(ip) != INADDR_NONE) {
|
if (inet_addr(ip) != INADDR_NONE) {
|
||||||
snprintf(cmdline, sizeof(cmdline),
|
snprintf(cmdline, sizeof(cmdline),
|
||||||
|
@ -191,8 +194,6 @@ tun_setip(const char *ip)
|
||||||
|
|
||||||
printf("Setting IP of %s to %s\n", if_name, ip);
|
printf("Setting IP of %s to %s\n", if_name, ip);
|
||||||
#ifndef LINUX
|
#ifndef LINUX
|
||||||
int r;
|
|
||||||
|
|
||||||
r = system(cmdline);
|
r = system(cmdline);
|
||||||
if(r != 0) {
|
if(r != 0) {
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in a new issue