fix warning
This commit is contained in:
parent
2db013d891
commit
426f9a1835
|
@ -873,11 +873,8 @@ ssdpDiscoverDevices(const char * const deviceTypes[],
|
||||||
* if searchalltypes is set, enter the loop only
|
* if searchalltypes is set, enter the loop only
|
||||||
* when the last deviceType is reached */
|
* when the last deviceType is reached */
|
||||||
if((sentok && !searchalltypes) || !deviceTypes[deviceIndex + 1]) {
|
if((sentok && !searchalltypes) || !deviceTypes[deviceIndex + 1]) {
|
||||||
struct timeval start, current;
|
struct timeval start = {0, 0}, current = {0, 0};
|
||||||
if (upnp_gettimeofday(&start) < 0) {
|
upnp_gettimeofday(&start);
|
||||||
start.tv_sec = 0;
|
|
||||||
start.tv_usec = 0;
|
|
||||||
}
|
|
||||||
do {
|
do {
|
||||||
n = receivedata(sudp, bufr, sizeof(bufr), delay, &scope_id);
|
n = receivedata(sudp, bufr, sizeof(bufr), delay, &scope_id);
|
||||||
if (n < 0) {
|
if (n < 0) {
|
||||||
|
|
Loading…
Reference in New Issue