miniupnpc: Exit with 1 if no UPnP devices found with upnp-listdevices
This commit is contained in:
parent
4b0ff229d8
commit
39543ed3ca
|
@ -189,7 +189,8 @@ int main(int argc, char * * argv)
|
||||||
free_device(dev_array);
|
free_device(dev_array);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("no device found.\n");
|
fprintf(stderr,"No UPnP devices found\n");
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue