From d70490a072a210f2a895d09180e57d2637c917ef Mon Sep 17 00:00:00 2001 From: "Fred L. Drake, Jr." Date: Wed, 25 Jul 2001 17:04:22 +0000 Subject: [PATCH] Clean up a few compiler warnings in the sameple code. --- expat/examples/outline.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 */ -- 2.40.0