Only has one return value and it's never checked.
ok martijn@, tb@
-/* $OpenBSD: agentx_control.c,v 1.5 2021/08/31 13:19:29 martijn Exp $ */
+/* $OpenBSD: agentx_control.c,v 1.6 2022/08/31 16:17:18 dv Exp $ */
/*
* Copyright (c) 2020 Martijn van Duren <martijn@openbsd.org>
proc_compose_imsg(lenv->sc_ps, id, -1, IMSG_AGENTXSOCK, -1, s, NULL, 0);
}
-int
+void
agentx_getsock(struct imsg *imsg)
{
struct timeval tv = AGENTX_RECONNECT_TIMEOUT;
agentx_connect(sa, imsg->fd);
- return 0;
retry:
evtimer_set(&env->sc_agentxev, agentx_sock, env);
evtimer_add(&env->sc_agentxev, &tv);
- return 0;
}
void
-/* $OpenBSD: relayd.c,v 1.187 2021/07/12 15:09:21 beck Exp $ */
+/* $OpenBSD: relayd.c,v 1.188 2022/08/31 16:17:18 dv Exp $ */
/*
* Copyright (c) 2007 - 2016 Reyk Floeter <reyk@openbsd.org>
parent_configure_done(env);
break;
case IMSG_AGENTXSOCK:
- (void)agentx_setsock(env, p->p_id);
+ agentx_setsock(env, p->p_id);
break;
default:
return (-1);
-/* $OpenBSD: relayd.h,v 1.268 2021/07/25 20:31:41 benno Exp $ */
+/* $OpenBSD: relayd.h,v 1.269 2022/08/31 16:17:18 dv Exp $ */
/*
* Copyright (c) 2006 - 2016 Reyk Floeter <reyk@openbsd.org>
/* agentx_control.c */
void agentx_init(struct relayd *);
void agentx_setsock(struct relayd *, enum privsep_procid);
-int agentx_getsock(struct imsg *);
+void agentx_getsock(struct imsg *);
void snmp_hosttrap(struct relayd *, struct table *, struct host *);
/* shuffle.c */