* HISTORY
* Revision 3.1 1994/04/17 11:31:54 too
* initial revision
- * Modified 2000/06/13 for inclusion into BusyBox by Erik Andersen <andersee@debian.org>
+ * Modified 2000/06/13 for inclusion into BusyBox by Erik Andersen <andersen@codepoet.org>
* Modified 2001/05/07 to add ability to pass TTYPE to remote host by Jim McQuillan
* <jam@ltsp.org>
*
#include <errno.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <string.h>
#include <signal.h>
#include <arpa/telnet.h>
#include <sys/types.h>
#ifdef USE_GLOBALVAR_PTR
struct Globalvars * Gptr;
#define G (*Gptr)
-#else
-static struct Globalvars G;
#endif
static inline void iacflush(void)
G.termios_raw = G.termios_def;
cfmakeraw(&G.termios_raw);
- if (argc < 2) show_usage();
+ if (argc < 2) bb_show_usage();
port = (argc > 2)? argv[2] : "23";
host = argv[1];