diff options
Diffstat (limited to 'networking/telnet.c')
-rw-r--r-- | networking/telnet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index bfa964460..7a7bcfb9f 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -583,7 +583,7 @@ static int getport(char * p) | |||
583 | 583 | ||
584 | if ((unsigned)(port - 1 ) > 65534) | 584 | if ((unsigned)(port - 1 ) > 65534) |
585 | { | 585 | { |
586 | fatalError("%s: bad port number\n", p); | 586 | error_msg_and_die("%s: bad port number\n", p); |
587 | } | 587 | } |
588 | return port; | 588 | return port; |
589 | } | 589 | } |
@@ -595,7 +595,7 @@ static struct in_addr getserver(char * host) | |||
595 | struct hostent * he; | 595 | struct hostent * he; |
596 | if ((he = gethostbyname(host)) == NULL) | 596 | if ((he = gethostbyname(host)) == NULL) |
597 | { | 597 | { |
598 | fatalError("%s: Unknown host\n", host); | 598 | error_msg_and_die("%s: Unknown host\n", host); |
599 | } | 599 | } |
600 | memcpy(&addr, he->h_addr, sizeof addr); | 600 | memcpy(&addr, he->h_addr, sizeof addr); |
601 | 601 | ||
@@ -650,7 +650,7 @@ static int remote_connect(struct in_addr addr, int port) | |||
650 | 650 | ||
651 | if (connect(s, (struct sockaddr *)&s_addr, sizeof s_addr) < 0) | 651 | if (connect(s, (struct sockaddr *)&s_addr, sizeof s_addr) < 0) |
652 | { | 652 | { |
653 | fatalError("Unable to connect to remote host: %s\n", strerror(errno)); | 653 | error_msg_and_die("Unable to connect to remote host: %s\n", strerror(errno)); |
654 | } | 654 | } |
655 | return s; | 655 | return s; |
656 | } | 656 | } |