mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
25 lines
795 B
Plaintext
25 lines
795 B
Plaintext
--- ../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 Mon Mar 3 11:41:33 1997
|
|
@@ -478,6 +478,8 @@
|
|
return name;
|
|
}
|
|
|
|
+ addr->sin_addr.s_addr = ntohl(addr->sin_addr.s_addr);
|
|
+
|
|
if (interp) {
|
|
char buffer[20];
|
|
sprintf(buffer, "%lu.%lu.%lu.%lu",
|