aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ipcalc.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-07-11 23:13:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-07-11 23:14:34 +0200
commitd92b46adf25799dff30b0be3af2402dcf0a0b727 (patch)
treee56d18d7ce3692eb06b93905bd6ce0cfd3ccc6ad /mod/ipcalc.rsc
parent4ecaadf0e72b414ddfef804ec1dc62d8623bac11 (diff)
mod/ipcalc: use :tocrlf
Diffstat (limited to 'mod/ipcalc.rsc')
-rw-r--r--mod/ipcalc.rsc5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/ipcalc.rsc b/mod/ipcalc.rsc
index 128ca54..6b65356 100644
--- a/mod/ipcalc.rsc
+++ b/mod/ipcalc.rsc
@@ -17,17 +17,16 @@
:global FormatLine;
:global IPCalcReturn;
- :global PrettyPrint;
:local Values [ $IPCalcReturn $1 ];
- $PrettyPrint ( \
+ :put [ :tocrlf ( \
[ $FormatLine "Address" ($Values->"address") ] . "\n" . \
[ $FormatLine "Netmask" ($Values->"netmask") ] . "\n" . \
[ $FormatLine "Network" ($Values->"network") ] . "\n" . \
[ $FormatLine "HostMin" ($Values->"hostmin") ] . "\n" . \
[ $FormatLine "HostMax" ($Values->"hostmax") ] . "\n" . \
- [ $FormatLine "Broadcast" ($Values->"broadcast") ]);
+ [ $FormatLine "Broadcast" ($Values->"broadcast") ]) ];
}
# calculate and return netmask, network, min host, max host and broadcast