Code

plugin: Make sdb_plugin_info_t public.
[sysdb.git] / src / liboconfig / oconfig.c
index 629775ab8c44dd55de5d930d0189168546d455c3..af11ad6c09fb9fafef5fdfd5fab11b6f7df79e76 100644 (file)
  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -25,6 +29,7 @@
 #include "oconfig.h"
 
 extern FILE *yyin;
+int yyparse (void);
 
 oconfig_item_t *ci_root;
 const char     *c_file;
@@ -61,6 +66,7 @@ oconfig_item_t *oconfig_parse_fh (FILE *fh)
   if (status != 0)
   {
     fprintf (stderr, "yyparse returned error #%i\n", status);
+    c_file = NULL;
     return (NULL);
   }