Commit 912c29fd authored by Yang Tse's avatar Yang Tse
Browse files

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

parent eea46891
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -515,7 +515,7 @@ int main(int argc, char **argv)

  do {
    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);
    if (n < 0) {
      logmsg("recvfrom:\n");