From 912c29fd8ce3fc324e8cadcb2907b745894b3b4f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 30 Jul 2008 06:20:43 +0000 Subject: Undo using the sreadfrom() wrapper to replace recvfrom() in our code, for real ;-) --- tests/server/tftpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 0fe18a2c7..773751970 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -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; -- cgit v1.2.3