Skip to content

Commit

Permalink
add stdlib.h include
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Sep 6, 2018
1 parent f90ff5f commit e6e904e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/cmdarg.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <stdio.h> /*stderr*/
#include <stdlib.h>
#include "cmdarg.h" /*cmdarg*/
#include "defs.h" /*VERSION_...*/

Expand Down
1 change: 1 addition & 0 deletions src/commx.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <stdio.h> /*stderr*/
#include <stdlib.h>
#include <signal.h> /*SIGCHLD*/
#include <unistd.h> /*(fork,execv)*/
#include <string.h> /*(strdup)*/
Expand Down
2 changes: 1 addition & 1 deletion src/modemu2k.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include <stdlib.h>
#include <unistd.h>

#include <sys/stat.h>
#include <stdio.h> /*(printf,fprintf)*/
#include <ctype.h> /*isprint*/
#include <arpa/telnet.h>/*IAC,DO,DONT,...*/
Expand Down
9 changes: 5 additions & 4 deletions src/telopt.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <stdio.h> /*stderr,(fprintf)*/
#include <stdlib.h>
#include <sys/time.h> /*->ttybuf.h (timeval)*/
#define TELCMDS /*to use strings defined in telnet.h*/
#define TELOPTS
Expand Down Expand Up @@ -34,9 +35,9 @@ telOptReset(void)
TelOptStates *tosp;

for (tosp = stTabMaster; tosp->opt >= 0; tosp++) {
tosp->local.state =
tosp->local.state =
tosp->remote.state = 0; /* all options are disabled initially */
tosp->local.pending =
tosp->local.pending =
tosp->remote.pending = 0;
}
telOpt.binsend =
Expand Down Expand Up @@ -154,7 +155,7 @@ telOptSendReqs(void)
}
break;
default:;
}
}
switch (tosp->remote.req) {
case TOR_MUSTNOT:
case TOR_BETTERNOT:
Expand All @@ -173,7 +174,7 @@ telOptSendReqs(void)
}
break;
default:;
}
}
}
telOpt.sentReqs = 1;
}
Expand Down
1 change: 1 addition & 0 deletions src/ttybuf.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <stdio.h> /*stderr,(perror)*/
#include <stdlib.h>
#include <unistd.h> /*(read,write)*/
#include <sys/time.h> /*->ttybuf.h (timeval)*/

Expand Down

0 comments on commit e6e904e

Please sign in to comment.