summaryrefslogtreecommitdiff
path: root/router.c
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-01-20 11:59:47 +0000
committerhibby <d@vehibberd.com>2018-01-20 11:59:47 +0000
commite707f3680e679cdfcf8ff21b15e42ec273189f31 (patch)
treec7ced1d3bc2f280c5137f4276f1da87c362eb60f /router.c
parente5129d408c9563d40ca03da3818a5fed305d4c41 (diff)
New upstream version 2.8.1
Diffstat (limited to 'router.c')
-rw-r--r--router.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/router.c b/router.c
index ccc522c..ea36d28 100644
--- a/router.c
+++ b/router.c
@@ -202,10 +202,17 @@ int do_dest(int argc, char **argv)
}
for (p=fdst;p!=NULL;p=p->next) {
sprintf(ssid, "%d-%d", p->ssida, p->sside);
- axio_printf(NodeIo,"%-7s %-5s %4ld%s",p->dest_call,ssid,p->rtt,(++i % 4) ? " " : "\n");
+ axio_printf(NodeIo,"%-7s %-5s %4ld%c",p->dest_call,ssid,p->rtt,(++i % 4) ? ' ' : '\n');
}
- if ((i % 4) != 0) axio_printf(NodeIo,"");
- free_flex_dst(fdst);
+ if ((User.ul_type == AF_NETROM) && (i % 4) == 0) {
+ node_msg("");
+ }
+ if ((User.ul_type == AF_NETROM) && (i % 4) != 0) {
+ node_msg("");
+ } else
+ if ((User.ul_type != AF_NETROM) && (i % 4) == 0) {
+ }
+ free_flex_dst(fdst);
// if (User.ul_type == AF_NETROM) {
// node_msg("");
// }