From 1de0ea4abd7153c6fcdbdbac6048a1e46f673fc2 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 31 Jan 2017 11:32:49 +0100 Subject: Sort out variable and function declarations. - Make static what can be made static. - Add declaration where they were missing. - Don't define variables in headers. - Move declaations to the proper locations. - Pick up declarations from the proper headers. Signed-off-by: Ralf Baechle --- ax25ipd/io.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'ax25ipd/io.c') diff --git a/ax25ipd/io.c b/ax25ipd/io.c index 26d3e96..bb2cbe0 100644 --- a/ax25ipd/io.c +++ b/ax25ipd/io.c @@ -43,31 +43,31 @@ #ifdef USE_TERMIOS #include -struct termios nterm; +static struct termios nterm; #endif #ifdef USE_TERMIO #include -struct termio nterm; +static struct termio nterm; #endif #ifdef USE_SGTTY #include -struct sgttyb nterm; +static struct sgttyb nterm; #endif int ttyfd = -1; -int udpsock = -1; -int sock = -1; +static int udpsock = -1; +static int sock = -1; #ifdef USE_ICMP -int icmpsock = -1; +static int icmpsock = -1; #endif -struct sockaddr_in udpbind; -struct sockaddr_in to; -struct sockaddr_in from; -socklen_t fromlen; +static struct sockaddr_in udpbind; +static struct sockaddr_in to; +static struct sockaddr_in from; +static socklen_t fromlen; -time_t last_bc_time; +static time_t last_bc_time; int ttyfd_bpq = 0; -- cgit v1.2.3