From: Fred L. Drake, Jr. Date: Wed, 25 Jul 2001 17:04:22 +0000 (+0000) Subject: Clean up a few compiler warnings in the sameple code. X-Git-Tag: R_1_95_2~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d70490a072a210f2a895d09180e57d2637c917ef;p=libexpat Clean up a few compiler warnings in the sameple code. --- diff --git a/expat/examples/outline.c b/expat/examples/outline.c index 22ab278d..a296494d 100644 --- a/expat/examples/outline.c +++ b/expat/examples/outline.c @@ -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 */