From: Ruben Kerkhof Date: Sat, 13 Aug 2016 16:51:55 +0000 (+0200) Subject: liboconfig: make function static X-Git-Tag: collectd-5.6.0~37 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a544ef87d9c354d1c75149ddd05804e9172806b3;p=collectd.git liboconfig: make function static --- diff --git a/configure.ac b/configure.ac index 251f785f..c72abd32 100644 --- a/configure.ac +++ b/configure.ac @@ -3409,7 +3409,7 @@ save_LDFLAGS="$LDFLAGS" save_CPPFLAGS="$CPPFLAGS" LDFLAGS="$liboconfig_LDFLAGS" CPPFLAGS="$liboconfig_CPPFLAGS" -AC_CHECK_LIB(oconfig, oconfig_parse_fh, +AC_CHECK_LIB(oconfig, oconfig_parse_file, [ with_liboconfig="yes" with_own_liboconfig="no" diff --git a/src/liboconfig/oconfig.c b/src/liboconfig/oconfig.c index 319aae85..d6f07446 100644 --- a/src/liboconfig/oconfig.c +++ b/src/liboconfig/oconfig.c @@ -43,7 +43,7 @@ static void yyset_in (FILE *fd) yyin = fd; } /* void yyset_in */ -oconfig_item_t *oconfig_parse_fh (FILE *fh) +static oconfig_item_t *oconfig_parse_fh (FILE *fh) { int status; oconfig_item_t *ret; diff --git a/src/liboconfig/oconfig.h b/src/liboconfig/oconfig.h index 840137cc..24045de0 100644 --- a/src/liboconfig/oconfig.h +++ b/src/liboconfig/oconfig.h @@ -64,7 +64,6 @@ struct oconfig_item_s /* * Functions */ -oconfig_item_t *oconfig_parse_fh (FILE *fh); oconfig_item_t *oconfig_parse_file (const char *file); oconfig_item_t *oconfig_clone (const oconfig_item_t *ci);