mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
11 lines
399 B
C++
11 lines
399 B
C++
--- examples/unix/undgramechosvr.cpp.orig 2023-12-17 20:26:10 UTC
|
|
+++ examples/unix/undgramechosvr.cpp
|
|
@@ -86,7 +86,7 @@ int main(int argc, char* argv[])
|
|
// 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);
|
|
|
|
return 0;
|
|
}
|