From c566467bd922a174c8c8d8dafb0ca333d1876056 Mon Sep 17 00:00:00 2001 From: "Fred L. Drake, Jr." Date: Wed, 25 Jul 2001 17:11:39 +0000 Subject: [PATCH] Kill a compiler warning & make private functions static. --- expat/sample/elements.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/expat/sample/elements.c b/expat/sample/elements.c index 9386660e..9a20c34d 100755 --- a/expat/sample/elements.c +++ b/expat/sample/elements.c @@ -6,7 +6,8 @@ one tab stop more than their parent element. */ #include #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; @@ -16,13 +17,15 @@ void startElement(void *userData, const char *name, const char **atts) *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);