Uncrustify maxscale

See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
This commit is contained in:
Niclas Antti
2018-09-09 22:26:19 +03:00
parent fa7ec95069
commit c447e5cf15
849 changed files with 35002 additions and 27238 deletions

View File

@ -16,9 +16,9 @@
static int running = 0;
void* query_thread(void *data)
void* query_thread(void* data)
{
TestConnections *Test = (TestConnections*)data;
TestConnections* Test = (TestConnections*)data;
int iter = 0;
while (!running)
@ -51,7 +51,12 @@ void* query_thread(void *data)
{
if (execute_query_silent(mysql, "select repeat('a', 1000)"))
{
Test->add_result(1, "Query number %d, iteration %d for '%s' failed: %s\n", i, iter, type, mysql_error(mysql));
Test->add_result(1,
"Query number %d, iteration %d for '%s' failed: %s\n",
i,
iter,
type,
mysql_error(mysql));
}
}
mysql_close(mysql);
@ -61,10 +66,10 @@ void* query_thread(void *data)
return NULL;
}
int main(int argc, char *argv[])
int main(int argc, char* argv[])
{
TestConnections *Test = new TestConnections(argc, argv);
TestConnections* Test = new TestConnections(argc, argv);
pthread_t threads[THREADS];
for (int i = 0; i < THREADS; i++)