Permalink
Browse files

Fix old testxml program

  • Loading branch information...
megastep committed Feb 10, 2006
1 parent 77d16e7 commit b7067c2650157a9ce49555e7aa3ae6924cafad96
Showing with 8 additions and 3 deletions.
  1. +8 −3 testxml.c
@@ -1,4 +1,9 @@
#include <gnome-xml/parser.h>
#include "config.h"
#include <stdio.h>
#include <ctype.h>
#include "setup-xml.h"
int copy_line(const char **srcpp, char *buf, int maxlen)
{
@@ -46,7 +51,6 @@ void ParseNode(xmlDocPtr doc, xmlNodePtr cur, int level)
{
const char *data;
char buf[BUFSIZ];
int i;
while ( cur ) {
if ( strcmp(cur->name, "option") != 0 ) {
@@ -106,7 +110,7 @@ const char *GetNodeText(xmlDocPtr doc, xmlNodePtr node, const char *name)
return(text);
}
main()
int main(void)
{
xmlDocPtr doc;
xmlNodePtr cur;
@@ -121,4 +125,5 @@ main()
}
}
xmlSaveFile("foo.xml", doc);
return 0;
}

0 comments on commit b7067c2

Please sign in to comment.