projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git]
/
src
/
liboconfig
/
oconfig.c
diff --git
a/src/liboconfig/oconfig.c
b/src/liboconfig/oconfig.c
index
bf21b90
..
5d2c5b2
100644
(file)
--- a/
src/liboconfig/oconfig.c
+++ b/
src/liboconfig/oconfig.c
@@
-33,6
+33,7
@@
#include "oconfig.h"
extern FILE *yyin;
#include "oconfig.h"
extern FILE *yyin;
+extern int yyparse (void);
oconfig_item_t *ci_root;
const char *c_file;
oconfig_item_t *ci_root;
const char *c_file;
@@
-52,8
+53,6
@@
oconfig_item_t *oconfig_parse_fh (FILE *fh)
yyset_in (fh);
if (NULL == c_file) {
yyset_in (fh);
if (NULL == c_file) {
- int status;
-
status = snprintf (file, sizeof (file), "<fd#%d>", fileno (fh));
if ((status < 0) || (status >= sizeof (file))) {
status = snprintf (file, sizeof (file), "<fd#%d>", fileno (fh));
if ((status < 0) || (status >= sizeof (file))) {
@@
-195,7
+194,7
@@
oconfig_item_t *oconfig_clone (const oconfig_item_t *ci_orig)
return (ci_copy);
} /* oconfig_item_t *oconfig_clone */
return (ci_copy);
} /* oconfig_item_t *oconfig_clone */
-void oconfig_free_all (oconfig_item_t *ci)
+
static
void oconfig_free_all (oconfig_item_t *ci)
{
int i;
{
int i;