summaryrefslogtreecommitdiffstats
path: root/netrom/nrparms.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-04-11 08:14:39 +0200
committerRalf Baechle <ralf@linux-mips.org>2001-04-11 08:14:39 +0200
commit59cfcb1d81825cc4816fc1ffddd0193f0ebec4ae (patch)
treee98dece1216a3b31d7170ae0bf0e122de1feac96 /netrom/nrparms.c
parent2964aba637fede36e89a3b6c4330767438a3b619 (diff)
Import ax25-tools 0.0.6 from tarballax25-tools-0.0.6
Diffstat (limited to 'netrom/nrparms.c')
-rw-r--r--netrom/nrparms.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/netrom/nrparms.c b/netrom/nrparms.c
index 48895b9..78a81f3 100644
--- a/netrom/nrparms.c
+++ b/netrom/nrparms.c
@@ -37,6 +37,7 @@ void nodes(int s, char *nodecall, char *op, char *ident, int quality, int count,
{
struct nr_route_struct nr_node;
char *p, *q, *dev;
+ int i;
if (ax25_config_load_ports() == 0) {
fprintf(stderr, "nrparms: nodes: no AX.25 ports configured\n");
@@ -44,7 +45,7 @@ void nodes(int s, char *nodecall, char *op, char *ident, int quality, int count,
}
nr_node.type = NETROM_NODE;
- /*nr_node.ndigis = 0;*/
+ nr_node.ndigis = 0;
if (op[0] != '+' && op[0] != '-') {
fprintf(stderr, "nrparms: nodes: invalid operation %s\n", op);
@@ -95,7 +96,7 @@ void nodes(int s, char *nodecall, char *op, char *ident, int quality, int count,
close(s);
exit(1);
}
- /*
+
for (i = 0; i < AX25_MAX_DIGIS && digis[i] != NULL; i++) {
if (ax25_aton_entry(digis[i], nr_node.digipeaters[i].ax25_call) != 0) {
fprintf(stderr, "nrparms: invalid callsign %s\n", digis[i]);
@@ -103,7 +104,7 @@ void nodes(int s, char *nodecall, char *op, char *ident, int quality, int count,
exit(1);
}
nr_node.ndigis++;
- } */
+ }
if ((dev = ax25_config_get_dev(port)) == NULL) {
fprintf(stderr, "nrparms: nodes: invalid port name - %s\n", port);