if (end1 || end2 || c1 != c2)
break;
}
- return (end1 && end2); /* reached end of both words? */
+ return end1 && end2; /* reached end of both words? */
}
wpa_printf(MSG_DEBUG, "WPS UPnP: M-SEARCH stop");
if (a->next == a) {
sm->msearch_replies = NULL;
- } else {
- if (sm->msearch_replies == a) {
+ } else {
+ if (sm->msearch_replies == a)
sm->msearch_replies = a->next;
- }
a->next->prev = a->prev;
a->prev->next = a->next;
}
a->type = MSEARCH_REPLY;
a->state = 0;
a->sm = sm;
- os_memcpy(&a->client, client, sizeof(client));
+ os_memcpy(&a->client, client, sizeof(*client));
/* Wait time depending on MX value */
next_timeout_msec = (1000 * mx * (os_random() & 0xFF)) >> 8;
next_timeout_sec = next_timeout_msec / 1000;
*/
int add_ssdp_network(char *net_if)
{
+#ifdef __linux__
int ret = -1;
int sock = -1;
struct rtentry rt;
close(sock);
return ret;
+#else /* __linux__ */
+ return 0;
+#endif /* __linux__ */
}