diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-11-04 10:08:38 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-12-15 07:31:55 -0500 | 
| commit | 2fcd46fe3817f162d08703ed9ab680f52ac0b24c (patch) | |
| tree | 8c2266f896b19a5d2743870acd2075c9d1ba4059 /lib/agentx.c | |
| parent | 881979e427b394c451719ff9c0639e8e56421908 (diff) | |
lib: Convert agentx_enabled to a bool
FRR is using this as a bool.  Let's just use a bool.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/agentx.c')
| -rw-r--r-- | lib/agentx.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/agentx.c b/lib/agentx.c index 6c2923fcf8..bdf0d97169 100644 --- a/lib/agentx.c +++ b/lib/agentx.c @@ -38,7 +38,7 @@ XREF_SETUP();  DEFINE_HOOK(agentx_enabled, (), ()); -static int agentx_enabled = 0; +static bool agentx_enabled = false;  static struct thread_master *agentx_tm;  static struct thread *timeout_thr = NULL; @@ -226,7 +226,7 @@ DEFUN (agentx_enable,  		init_snmp(FRR_SMUX_NAME);  		events = list_new();  		agentx_events_update(); -		agentx_enabled = 1; +		agentx_enabled = true;  		hook_call(agentx_enabled);  	} @@ -245,7 +245,7 @@ DEFUN (no_agentx,  	return CMD_WARNING_CONFIG_FAILED;  } -int smux_enabled(void) +bool smux_enabled(void)  {  	return agentx_enabled;  } @@ -272,7 +272,7 @@ void smux_agentx_enable(void)  		init_snmp(FRR_SMUX_NAME);  		events = list_new();  		agentx_events_update(); -		agentx_enabled = 1; +		agentx_enabled = true;  	}  }  | 
