mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
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
This commit is contained in:
@@ -36,8 +36,8 @@ static const char *testfiles[] = {
|
||||
"test/threads/invalid.xml",
|
||||
};
|
||||
|
||||
const char *Okay = "OK";
|
||||
const char *Failed = "Failed";
|
||||
static const char *Okay = "OK";
|
||||
static const char *Failed = "Failed";
|
||||
|
||||
#ifndef xmlDoValidityCheckingDefaultValue
|
||||
#error xmlDoValidityCheckingDefaultValue is not a macro
|
||||
@@ -110,7 +110,7 @@ main(void)
|
||||
}
|
||||
|
||||
for (i = 0; i < num_threads; i++) {
|
||||
ret = pthread_create(&tid[i], 0, thread_specific_data,
|
||||
ret = pthread_create(&tid[i], NULL, thread_specific_data,
|
||||
(void *) testfiles[i]);
|
||||
if (ret != 0) {
|
||||
perror("pthread_create");
|
||||
|
Reference in New Issue
Block a user