netutils/telnetd/telnetd_daemon.c: Fix another C89 violation that caused the ez80 build to fail.

This commit is contained in:
Gregory Nutt 2019-06-03 09:07:07 -06:00
parent 31147b962c
commit 63de16bd58
2 changed files with 9 additions and 1 deletions

6
netutils/ping/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
/.built
/.depend
/Make.dep
/*.src
/*.obj
/*.lst

View File

@ -272,9 +272,11 @@ static int telnetd_daemon(int argc, char *argv[])
for (;;) for (;;)
{ {
socklen_t accptlen;
ninfo("Accepting connections on port %d\n", ntohs(daemon->port)); ninfo("Accepting connections on port %d\n", ntohs(daemon->port));
socklen_t accptlen = sizeof(addr); accptlen = sizeof(addr);
acceptsd = accept(listensd, &addr.generic, &accptlen); acceptsd = accept(listensd, &addr.generic, &accptlen);
if (acceptsd < 0) if (acceptsd < 0)
{ {