mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
unsigned [int] -> uint
This commit is contained in:
committed by
Ondrej Zajicek
parent
e348ef01b4
commit
ae80a2de95
12
nest/cli.h
12
nest/cli.h
@@ -40,10 +40,10 @@ typedef struct cli {
|
||||
struct linpool *parser_pool; /* Pool used during parsing */
|
||||
byte *ring_buf; /* Ring buffer for asynchronous messages */
|
||||
byte *ring_end, *ring_read, *ring_write; /* Pointers to the ring buffer */
|
||||
unsigned int ring_overflow; /* Counter of ring overflows */
|
||||
unsigned int log_mask; /* Mask of allowed message levels */
|
||||
unsigned int log_threshold; /* When free < log_threshold, store only important messages */
|
||||
unsigned int async_msg_size; /* Total size of async messages queued in tx_buf */
|
||||
uint ring_overflow; /* Counter of ring overflows */
|
||||
uint log_mask; /* Mask of allowed message levels */
|
||||
uint log_threshold; /* When free < log_threshold, store only important messages */
|
||||
uint async_msg_size; /* Total size of async messages queued in tx_buf */
|
||||
} cli;
|
||||
|
||||
extern pool *cli_pool;
|
||||
@@ -55,7 +55,7 @@ extern struct cli *this_cli; /* Used during parsing */
|
||||
|
||||
void cli_printf(cli *, int, char *, ...);
|
||||
#define cli_msg(x...) cli_printf(this_cli, x)
|
||||
void cli_set_log_echo(cli *, unsigned int mask, unsigned int size);
|
||||
void cli_set_log_echo(cli *, uint mask, uint size);
|
||||
|
||||
/* Functions provided to sysdep layer */
|
||||
|
||||
@@ -64,7 +64,7 @@ void cli_init(void);
|
||||
void cli_free(cli *);
|
||||
void cli_kick(cli *);
|
||||
void cli_written(cli *);
|
||||
void cli_echo(unsigned int class, byte *msg);
|
||||
void cli_echo(uint class, byte *msg);
|
||||
|
||||
static inline int cli_access_restricted(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user