mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 18:16:48 -04:00
11 lines
451 B
C++
11 lines
451 B
C++
--- examples/udp/udpechosvr.cpp.orig 2023-12-17 20:26:10 UTC
|
|
+++ examples/udp/udpechosvr.cpp
|
|
@@ -72,7 +72,7 @@ void run_echo(UDPSOCK sock)
|
|
// Read some data, also getting the address of the sender,
|
|
// then just send it back.
|
|
while ((n = sock.recv_from(buf, sizeof(buf), &srcAddr)) > 0)
|
|
- sock.send_to(buf, n, srcAddr);
|
|
+ sock.send_to((void*)buf, n, srcAddr);
|
|
}
|
|
|
|
// --------------------------------------------------------------------------
|