Change variables to static
This commit is contained in:
parent
4522b5b942
commit
7fd76dc23e
@ -41,14 +41,13 @@
|
||||
#define SLIP_ESC_ESC 0335
|
||||
/*---------------------------------------------------------------------------*/
|
||||
PROCESS(slip_process, "SLIP driver");
|
||||
|
||||
uint8_t slip_active;
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static uint8_t slip_active;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if 1
|
||||
#define SLIP_STATISTICS(statement)
|
||||
#else
|
||||
uint16_t slip_rubbish, slip_twopackets, slip_overflow, slip_ip_drop;
|
||||
static uint16_t slip_rubbish, slip_twopackets, slip_overflow, slip_ip_drop;
|
||||
#define SLIP_STATISTICS(statement) statement
|
||||
#endif
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -64,12 +64,6 @@ int slip_input_byte(unsigned char c);
|
||||
|
||||
uint8_t slip_write(const void *ptr, int len);
|
||||
|
||||
/* Did we receive any bytes lately? */
|
||||
extern uint8_t slip_active;
|
||||
|
||||
/* Statistics. */
|
||||
extern uint16_t slip_rubbish, slip_twopackets, slip_overflow, slip_ip_drop;
|
||||
|
||||
/**
|
||||
* Set a function to be called when there is activity on the SLIP
|
||||
* interface; used for detecting if a node is a gateway node.
|
||||
|
Loading…
Reference in New Issue
Block a user