Undo using the sreadfrom() wrapper to replace recvfrom() in our code, for real ;-)
This commit is contained in:
parent
eea468918e
commit
912c29fd8c
@ -515,8 +515,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
fromlen = sizeof(from);
|
fromlen = sizeof(from);
|
||||||
n = (ssize_t)sreadfrom(sock, buf, sizeof(buf), 0,
|
n = (ssize_t)recvfrom(sock, buf, sizeof(buf), 0,
|
||||||
(struct sockaddr *)&from, &fromlen);
|
(struct sockaddr *)&from, &fromlen);
|
||||||
if (n < 0) {
|
if (n < 0) {
|
||||||
logmsg("recvfrom:\n");
|
logmsg("recvfrom:\n");
|
||||||
result = 3;
|
result = 3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user