]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/agentx.c
Merge pull request #11076 from routingrocks/vrrp_master_ad_cli
[mirror_frr.git] / lib / agentx.c
index 5f865ca2b834476149358c280cb569bcd8d0e98d..821c573fb279c7505c176580a1df822853660a85 100644 (file)
@@ -46,7 +46,7 @@ static struct list *events = NULL;
 
 static void agentx_events_update(void);
 
-static int agentx_timeout(struct thread *t)
+static void agentx_timeout(struct thread *t)
 {
        timeout_thr = NULL;
 
@@ -54,10 +54,9 @@ static int agentx_timeout(struct thread *t)
        run_alarms();
        netsnmp_check_outstanding_agent_requests();
        agentx_events_update();
-       return 0;
 }
 
-static int agentx_read(struct thread *t)
+static void agentx_read(struct thread *t)
 {
        fd_set fds;
        int flags, new_flags = 0;
@@ -72,7 +71,7 @@ static int agentx_read(struct thread *t)
        if (-1 == flags) {
                flog_err(EC_LIB_SYSTEM_CALL, "Failed to get FD settings fcntl: %s(%d)",
                         strerror(errno), errno);
-               return -1;
+               return;
        }
 
        if (flags & O_NONBLOCK)
@@ -101,7 +100,6 @@ static int agentx_read(struct thread *t)
 
        netsnmp_check_outstanding_agent_requests();
        agentx_events_update();
-       return 0;
 }
 
 static void agentx_events_update(void)