aboutsummaryrefslogtreecommitdiffstats
path: root/xmllint.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-07-28 23:49:35 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-07-28 23:49:35 +0000
commit24505b0f5c872c5afb6da5093565e5a6e09ca541 (patch)
tree675aac028fceb06d49b65b628072e96fa7fe4786 /xmllint.c
parent4cd3b519664b9d95935d14e72ac5965b047b3a51 (diff)
downloadandroid_external_libxml2-24505b0f5c872c5afb6da5093565e5a6e09ca541.tar.gz
android_external_libxml2-24505b0f5c872c5afb6da5093565e5a6e09ca541.tar.bz2
android_external_libxml2-24505b0f5c872c5afb6da5093565e5a6e09ca541.zip
a lot of small cleanups based on Linus' sparse check output. Daniel
* HTMLparser.c SAX2.c encoding.c globals.c parser.c relaxng.c runsuite.c runtest.c schematron.c testHTML.c testReader.c testRegexp.c testSAX.c testThreads.c valid.c xinclude.c xmlIO.c xmllint.c xmlmodule.c xmlschemas.c xpath.c xpointer.c: a lot of small cleanups based on Linus' sparse check output. Daniel
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmllint.c b/xmllint.c
index f3305390..686b652c 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -235,7 +235,7 @@ void parsePath(const xmlChar *path) {
}
}
-xmlExternalEntityLoader defaultEntityLoader = NULL;
+static xmlExternalEntityLoader defaultEntityLoader = NULL;
static xmlParserInputPtr
xmllintExternalEntityLoader(const char *URL, const char *ID,
@@ -508,7 +508,7 @@ endTimer(char *format, ...)
* HTML ouput *
* *
************************************************************************/
-char buffer[50000];
+static char buffer[50000];
static void
xmlHTMLEncodeSend(void) {
@@ -817,7 +817,7 @@ static void myClose(FILE *f) {
/*
* empty SAX block
*/
-xmlSAXHandler emptySAXHandlerStruct = {
+static xmlSAXHandler emptySAXHandlerStruct = {
NULL, /* internalSubset */
NULL, /* isStandalone */
NULL, /* hasInternalSubset */
@@ -852,7 +852,7 @@ xmlSAXHandler emptySAXHandlerStruct = {
NULL /* xmlStructuredErrorFunc */
};
-xmlSAXHandlerPtr emptySAXHandler = &emptySAXHandlerStruct;
+static xmlSAXHandlerPtr emptySAXHandler = &emptySAXHandlerStruct;
extern xmlSAXHandlerPtr debugSAXHandler;
static int callbacks;
@@ -1440,7 +1440,7 @@ fatalErrorDebug(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...)
va_end(args);
}
-xmlSAXHandler debugSAXHandlerStruct = {
+static xmlSAXHandler debugSAXHandlerStruct = {
internalSubsetDebug,
isStandaloneDebug,
hasInternalSubsetDebug,
@@ -1564,7 +1564,7 @@ endElementNsDebug(void *ctx ATTRIBUTE_UNUSED,
fprintf(stdout, ", '%s')\n", (char *) URI);
}
-xmlSAXHandler debugSAX2HandlerStruct = {
+static xmlSAXHandler debugSAX2HandlerStruct = {
internalSubsetDebug,
isStandaloneDebug,
hasInternalSubsetDebug,
@@ -1599,7 +1599,7 @@ xmlSAXHandler debugSAX2HandlerStruct = {
NULL
};
-xmlSAXHandlerPtr debugSAX2Handler = &debugSAX2HandlerStruct;
+static xmlSAXHandlerPtr debugSAX2Handler = &debugSAX2HandlerStruct;
static void
testSAX(const char *filename) {