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 {
|
||||
fromlen = sizeof(from);
|
||||
n = (ssize_t)sreadfrom(sock, buf, sizeof(buf), 0,
|
||||
(struct sockaddr *)&from, &fromlen);
|
||||
n = (ssize_t)recvfrom(sock, buf, sizeof(buf), 0,
|
||||
(struct sockaddr *)&from, &fromlen);
|
||||
if (n < 0) {
|
||||
logmsg("recvfrom:\n");
|
||||
result = 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user