summaryrefslogtreecommitdiffstats
path: root/ax25
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-07 01:25:59 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-07 01:25:59 +0200
commitd33b07fe9207c73d7195d942b13097a81013a19d (patch)
tree20c1982327f929e986682dc22816b202d05d04c2 /ax25
parent60ae5e35857acd9a0844d1c794faff6a02c15918 (diff)
ax25/ax25d.c: Fix warning about set but unused variable.
This is from dead code setting the no-op socket option AX25_IAMDIGI. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25')
-rw-r--r--ax25/ax25d.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/ax25/ax25d.c b/ax25/ax25d.c
index 4694fb9..8140b4f 100644
--- a/ax25/ax25d.c
+++ b/ax25/ax25d.c
@@ -810,7 +810,6 @@ static int ReadConfig(void)
int af_type = 0; /* Keep GCC happy */
int line = 0;
int hunt = TRUE, error = FALSE;
- int iamdigi = FALSE;
int parameters = 0;
signal(SIGALRM, SIG_IGN);
@@ -835,21 +834,18 @@ static int ReadConfig(void)
af_type = AF_AX25;
hunt = TRUE;
error = FALSE;
- iamdigi = FALSE;
break;
case '<': /* NETROM iface call */
af_type = AF_NETROM;
hunt = TRUE;
error = FALSE;
- iamdigi = FALSE;
break;
case '{': /* ROSE iface call */
af_type = AF_ROSE;
hunt = TRUE;
error = FALSE;
- iamdigi = FALSE;
break;
default:
@@ -881,7 +877,6 @@ static int ReadConfig(void)
port = s;
if ((s = strchr(call, '*')) != NULL) {
- iamdigi = TRUE;
*s = '\0';
}
}
@@ -979,13 +974,6 @@ static int ReadConfig(void)
reload_timer(60);
continue;
}
- /* xlz - have to nuke this as this option is gone
- * what should be here?
- if (iamdigi) {
- yes = 1;
- setsockopt(axl_port->fd, SOL_AX25, AX25_IAMDIGI, &yes, sizeof(yes));
- }
- */
if (bind(axl_port->fd, (struct sockaddr *)&sockaddr, addrlen) < 0) {
fprintf(stderr, "ax25d: bind: %s on port %s\n", strerror(errno), axl_port->port);