#include <stdio.h>
#include "expat.h"
-void startElement(void *userData, const char *name, const char **atts)
+static void
+startElement(void *userData, const char *name, const char **atts)
{
int i;
int *depthPtr = userData;
*depthPtr += 1;
}
-void endElement(void *userData, const char *name)
+static void
+endElement(void *userData, const char *name)
{
int *depthPtr = userData;
*depthPtr -= 1;
}
-int main()
+int
+main(int argc, char *argv[])
{
char buf[BUFSIZ];
XML_Parser parser = XML_ParserCreate(NULL);