aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-30 06:20:43 +0000
committerYang Tse <yangsita@gmail.com>2008-07-30 06:20:43 +0000
commit912c29fd8ce3fc324e8cadcb2907b745894b3b4f (patch)
treeef68e9261005caff6220bc189d3df95b782d630f
parenteea468918eacb5840a108477cbbff00779a36240 (diff)
Undo using the sreadfrom() wrapper to replace recvfrom() in our code, for real ;-)
-rw-r--r--tests/server/tftpd.c4
1 files 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;