Adapt to GLib coding standards.

2006-05-10  Sebastian Wilhelmi  <wilhelmi@google.com>

	* tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
This commit is contained in:
Sebastian Wilhelmi 2006-05-10 23:58:27 +00:00 committed by Sebastian Wilhelmi
parent 530b06b7e5
commit a194e2e971
3 changed files with 20 additions and 12 deletions

View File

@ -1,3 +1,7 @@
2006-05-10 Sebastian Wilhelmi <wilhelmi@google.com>
* tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved

View File

@ -1,3 +1,7 @@
2006-05-10 Sebastian Wilhelmi <wilhelmi@google.com>
* tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved

View File

@ -108,24 +108,24 @@ main (int argc, char* argv[])
int i;
if (argc == 2)
{
for (i = 0; i < G_N_ELEMENTS (func_table); i++)
{
if (strcmp (func_table[i].name, argv[1]) == 0)
{
g_thread_init (NULL);
func_table[i].func ();
g_assert_not_reached ();
}
for (i = 0; i < G_N_ELEMENTS (func_table); i++)
{
if (strcmp (func_table[i].name, argv[1]) == 0)
{
g_thread_init (NULL);
func_table[i].func ();
g_assert_not_reached ();
}
}
}
}
fprintf (stderr, "Usage: errorcheck-mutex-test [TEST]\n\n");
fprintf (stderr, " where TEST can be one of:\n\n");
for (i = 0; i < G_N_ELEMENTS (func_table); i++)
{
fprintf (stderr, " %s\n", func_table[i].name);
}
{
fprintf (stderr, " %s\n", func_table[i].name);
}
return 0;
}