Fix some bugs reported by Jim Gleason <jimg@lineo.com> and others I
[oweals/busybox.git] / networking / telnet.c
index 3e43c4a1b90e435d6882192ab12d1a7240a2334c..bfa964460908af6793e55939bf99d2163cee48b8 100644 (file)
@@ -31,7 +31,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <termios.h>
 #include <unistd.h>
 #include <errno.h>
@@ -49,7 +49,7 @@
 #define DOTRACE 1
 #endif
 
-#if DOTRACE
+#ifdef DOTRACE
 #include <arpa/inet.h> /* for inet_ntoa()... */
 #define TRACE(x, y) do { if (x) printf y; } while (0)
 #else
@@ -595,7 +595,7 @@ static struct in_addr getserver(char * host)
        struct hostent * he;
        if ((he = gethostbyname(host)) == NULL)
        {
-               fatalError("%s: Unkonwn host\n", host);
+               fatalError("%s: Unknown host\n", host);
        }
        memcpy(&addr, he->h_addr, sizeof addr);