diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-31 11:32:49 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-01-31 11:32:49 +0100 |
commit | 1de0ea4abd7153c6fcdbdbac6048a1e46f673fc2 (patch) | |
tree | c81a8d6c58fcee19cead9cce8122ec35342428b1 /ax25ipd/io.c | |
parent | aa1bfde879f3c5885199d7bb4720efaabff67d8c (diff) |
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 <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/io.c')
-rw-r--r-- | ax25ipd/io.c | 22 |
1 files changed, 11 insertions, 11 deletions
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 <sys/termios.h> -struct termios nterm; +static struct termios nterm; #endif #ifdef USE_TERMIO #include <termio.h> -struct termio nterm; +static struct termio nterm; #endif #ifdef USE_SGTTY #include <sys/ioctl.h> -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; |