]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
ip_addr_set_any does not work on pointers...
authorgoldsimon <goldsimon>
Mon, 14 Jun 2010 19:52:17 +0000 (19:52 +0000)
committergoldsimon <goldsimon>
Mon, 14 Jun 2010 19:52:17 +0000 (19:52 +0000)
src/api/sockets.c

index f1db54734dba9be39a24f2e43adcd5f28d990070..7cefbd4c44c0aa078e1fcd86330cb1f8731cab8f 100644 (file)
@@ -844,7 +844,7 @@ lwip_sendto(int s, const void *data, size_t size, int flags,
         inet_addr_to_ipaddr_p(remote_addr, &to_in->sin_addr);
         remote_port = ntohs(to_in->sin_port);
       } else {
-        ip_addr_set_any(&remote_addr);
+        remote_addr = IP_ADDR_ANY;
         remote_port = 0;
       }