diff --git a/src/confd/src/Makefile.am b/src/confd/src/Makefile.am index ac96e2ff..8928215a 100644 --- a/src/confd/src/Makefile.am +++ b/src/confd/src/Makefile.am @@ -8,4 +8,4 @@ confd_plugin_la_CFLAGS = $(augeas_CFLAGS) $(libite_CFLAGS) $(sysrepo_CFLAGS) $( confd_plugin_la_LIBADD = $(augeas_LIBS) $(libite_LIBS) $(sysrepo_LIBS) confd_plugin_la_LDFLAGS = -module -avoid-version -shared confd_plugin_la_SOURCES = core.c core.h helpers.c helpers.h srx_module.c srx_module.h srx_val.c srx_val.h \ - ietf-system.c ietf-interfaces.c systemv.c + ietf-system.c ietf-interfaces.c systemv.c systemv.h diff --git a/src/confd/src/core.h b/src/confd/src/core.h index fcc277cf..aff74617 100644 --- a/src/confd/src/core.h +++ b/src/confd/src/core.h @@ -21,6 +21,7 @@ #include #include "helpers.h" +#include "systemv.h" #ifndef HAVE_VASPRINTF int vasprintf(char **strp, const char *fmt, va_list ap); diff --git a/src/confd/src/systemv.c b/src/confd/src/systemv.c index 7c213d26..a091f32d 100644 --- a/src/confd/src/systemv.c +++ b/src/confd/src/systemv.c @@ -12,7 +12,7 @@ /** * Reimplementation of system() without /bin/sh intermediary */ -int fsystemv(char **args, FILE *in, FILE *out, FILE *err) +static int fsystemv(char **args, FILE *in, FILE *out, FILE *err) { struct sigaction sa = { .sa_handler = SIG_IGN }; sigset_t oldmask; diff --git a/src/confd/src/systemv.h b/src/confd/src/systemv.h new file mode 100644 index 00000000..70c48718 --- /dev/null +++ b/src/confd/src/systemv.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + +#ifndef CONFD_SYSTEMV_H_ +#define CONFD_SYSTEMV_H_ + +int systemv(char **args); +int systemv_silent(char **args); + +#endif /* CONFD_SYSTEMV_H_ */