Restconf: Notify ssl version on start

SNMP: rm unused variables
This commit is contained in:
Olof hagsand 2024-09-15 11:34:28 +02:00
parent cc194ac7c5
commit f1d9e26755
4 changed files with 5 additions and 9 deletions

View file

@ -1249,7 +1249,8 @@ main(int argc,
goto done;
#endif
clixon_debug_init(h, dbg);
clixon_log(h, LOG_NOTICE, "%s native %u Started", __PROGRAM__, getpid());
clixon_log(h, LOG_NOTICE, "%s native %u Started, SSL version:%lx", __PROGRAM__, getpid(), OPENSSL_VERSION_NUMBER);
if (set_signal(SIGTERM, restconf_sig_term, NULL) < 0){
clixon_err(OE_DAEMON, errno, "Setting signal");
goto done;

View file

@ -108,7 +108,6 @@ clixon_snmp_sig_term(int arg)
static int
snmp_terminate(clixon_handle h)
{
yang_stmt *yspec;
cvec *nsctx;
cxobj *x = NULL;
char *pidfile = clicon_snmp_pidfile(h);

View file

@ -83,7 +83,6 @@ get_oid_for_yang_node(yang_stmt *ys,
int retval = -1;
int exist = 0;
char *oidstr = NULL;
char *path;
yang_stmt *ytype;
yang_stmt *ypath;
yang_stmt *yref;
@ -293,7 +292,6 @@ snmp_stream_cb(int s,
int eof;
cxobj *xtop = NULL; /* top xml */
cxobj *xncont = NULL; /* notification content xml */
cxobj *xn; /* notification xml */
cbuf *cbmsg = NULL;
int ret;
@ -321,8 +319,6 @@ snmp_stream_cb(int s,
goto done;
}
}
ok:
retval = 0;
done:
clixon_debug(CLIXON_DBG_SNMP, "retval: %d", retval);
@ -372,7 +368,6 @@ snmp_stream_subscribe(clixon_handle h,
}
*socket = s;
retval = 0;
done:
clixon_debug(CLIXON_DBG_SNMP, "retval: %d", retval);
if (xret)