Undo using the sreadfrom() wrapper to replace recvfrom() in our code, for real ;-)

This commit is contained in:
Yang Tse 2008-07-30 06:20:43 +00:00
parent eea468918e
commit 912c29fd8c

View File

@ -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;