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/kiss.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ax25ipd/kiss.c') diff --git a/ax25ipd/kiss.c b/ax25ipd/kiss.c index fded84c..f07db22 100644 --- a/ax25ipd/kiss.c +++ b/ax25ipd/kiss.c @@ -21,23 +21,23 @@ #define TFEND 0xdc #define TFESC 0xdd -unsigned char iframe[MAX_FRAME]; -unsigned char *ifptr; -int ifcount; -int iescaped; +static unsigned char iframe[MAX_FRAME]; +static unsigned char *ifptr; +static int ifcount; +static int iescaped; -unsigned char oframe[MAX_FRAME]; -unsigned char *ofptr; -int ofcount; +static unsigned char oframe[MAX_FRAME]; +static unsigned char *ofptr; +static int ofcount; #define PTABLE_SIZE 10 -struct param_table_entry { +static struct param_table_entry { unsigned char parameter; unsigned char value; } param_tbl[PTABLE_SIZE]; -int param_tbl_top; +static int param_tbl_top; /* -- cgit v1.2.3