]> granicus.if.org Git - libexpat/commitdiff
Clean up a few compiler warnings in the sameple code.
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Wed, 25 Jul 2001 17:04:22 +0000 (17:04 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Wed, 25 Jul 2001 17:04:22 +0000 (17:04 +0000)
expat/examples/outline.c

index 22ab278d77052a51d3f4920f66a1357ec445d6d8..a296494db531f31805d286c584a85d2db3852b8d 100644 (file)
@@ -30,7 +30,7 @@ char Buff[BUFFSIZE];
 
 int Depth;
 
-void
+static void
 start(void *data, const char *el, const char **attr) {
   int i;
 
@@ -47,12 +47,13 @@ start(void *data, const char *el, const char **attr) {
   Depth++;
 }  /* End of start handler */
 
-void
+static void
 end(void *data, const char *el) {
   Depth--;
 }  /* End of end handler */
 
-main(int argc, char **argv) {
+int
+main(int argc, char *argv[]) {
   XML_Parser p = XML_ParserCreate(NULL);
   if (! p) {
     fprintf(stderr, "Couldn't allocate memory for parser\n");
@@ -82,5 +83,6 @@ main(int argc, char **argv) {
     if (done)
       break;
   }
+  return 0;
 }  /* End of main */