aboutsummaryrefslogtreecommitdiff
path: root/net/scotty3
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-03-03 11:46:46 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-03-03 11:46:46 +0000
commitf74907ef6ce040027aea65fbf55a44e81c608a39 (patch)
tree15f912b9711fb2a6ac7675711ff78a1cbdcf3560 /net/scotty3
parent9e6b9275308fa236f2f7fa9b2108e6958ce5f749 (diff)
downloadports-f74907ef6ce040027aea65fbf55a44e81c608a39.tar.gz
ports-f74907ef6ce040027aea65fbf55a44e81c608a39.zip
Notes
Diffstat (limited to 'net/scotty3')
-rw-r--r--net/scotty3/files/patch-ab36
1 files changed, 20 insertions, 16 deletions
diff --git a/net/scotty3/files/patch-ab b/net/scotty3/files/patch-ab
index 5117a58b2f53..e82ab476e3aa 100644
--- a/net/scotty3/files/patch-ab
+++ b/net/scotty3/files/patch-ab
@@ -1,20 +1,24 @@
-diff -u -r tnm/generic/tnmUtil.c tnm/generic/tnmUtil.c
+--- ../tnm/generic/tnmNetdb.c Wed Aug 7 07:13:18 1996
++++ ../tnm/generic/tnmNetdb.c Mon Mar 3 11:46:16 1997
+@@ -218,6 +218,9 @@
+ if (TnmSetIPAddress(interp, name, &addr) != TCL_OK) {
+ return TCL_ERROR;
+ }
++
++ addr.sin_addr.s_addr = ntohl(addr.sin_addr.s_addr);
++
+ sprintf(interp->result, "%lu.%lu.%lu.%lu",
+ (addr.sin_addr.s_addr >> 24) & 0xff,
+ (addr.sin_addr.s_addr >> 16) & 0xff,
+diff -u -r work.ref/scotty-2.1.3/tnm/generic/tnmUtil.c work/scotty-2.1.3/tnm/generic/tnmUtil.c
--- ../tnm/generic/tnmUtil.c Tue Aug 6 17:20:38 1996
-+++ ../tnm/generic/tnmUtil.c Sat Mar 1 20:45:12 1997
-@@ -400,7 +400,7 @@
- if (hostEntry) {
- struct sockaddr_in *caddr;
- caddr = (struct sockaddr_in *) Tcl_GetHashValue(hostEntry);
-- addr->sin_addr.s_addr = caddr->sin_addr.s_addr;
-+ addr->sin_addr.s_addr = ntohl(caddr->sin_addr.s_addr);
- return TCL_OK;
++++ ../tnm/generic/tnmUtil.c Mon Mar 3 11:41:33 1997
+@@ -478,6 +478,8 @@
+ return name;
}
-
-@@ -425,6 +425,7 @@
- memcpy((char *) &addr->sin_addr, (char *) &hostaddr, 4);
- }
+ addr->sin_addr.s_addr = ntohl(addr->sin_addr.s_addr);
- return TCL_OK;
- }
-
++
+ if (interp) {
+ char buffer[20];
+ sprintf(buffer, "%lu.%lu.%lu.%lu",