forked from pool/x3270
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
--- x3270-3.3/telnet.c.ORG 2005-06-16 16:32:42.000000000 +0200
|
|
+++ x3270-3.3/telnet.c 2005-06-16 17:06:56.988963537 +0200
|
|
@@ -431,7 +431,7 @@
|
|
if (hp == (struct hostent *) 0) {
|
|
haddr.sin.sin_family = AF_INET;
|
|
haddr.sin.sin_addr.s_addr = inet_addr(host);
|
|
- if (haddr.sin.sin_addr.s_addr == (unsigned long)-1) {
|
|
+ if (haddr.sin.sin_addr.s_addr == INADDR_NONE) {
|
|
popup_an_error("Unknown host:\n%s",
|
|
hostname);
|
|
return -1;
|
|
--- tcl3270-3.3/telnet.c.ORG 2005-06-16 16:32:42.000000000 +0200
|
|
+++ tcl3270-3.3/telnet.c 2005-06-16 17:11:25.798963537 +0200
|
|
@@ -431,7 +431,7 @@
|
|
if (hp == (struct hostent *) 0) {
|
|
haddr.sin.sin_family = AF_INET;
|
|
haddr.sin.sin_addr.s_addr = inet_addr(host);
|
|
- if (haddr.sin.sin_addr.s_addr == (unsigned long)-1) {
|
|
+ if (haddr.sin.sin_addr.s_addr == INADDR_NONE) {
|
|
popup_an_error("Unknown host:\n%s",
|
|
hostname);
|
|
return -1;
|
|
--- s3270-3.3/telnet.c.ORG 2005-06-16 17:17:48.000000000 +0200
|
|
+++ s3270-3.3/telnet.c 2005-06-16 17:18:18.738963537 +0200
|
|
@@ -431,7 +431,7 @@
|
|
if (hp == (struct hostent *) 0) {
|
|
haddr.sin.sin_family = AF_INET;
|
|
haddr.sin.sin_addr.s_addr = inet_addr(host);
|
|
- if (haddr.sin.sin_addr.s_addr == (unsigned long)-1) {
|
|
+ if (haddr.sin.sin_addr.s_addr == INADDR_NONE) {
|
|
popup_an_error("Unknown host:\n%s",
|
|
hostname);
|
|
return -1;
|