ditch whitespace before GLIB_SYSDEFS #includes, the # needs to be in

* configure.in: ditch whitespace before GLIB_SYSDEFS #includes,
the # needs to be in column 1

* gthread/testgthread.c: cleanups

* tests/node-test.c: #include unistd.h for exit()

-Yosh
This commit is contained in:
Manish Singh 1999-01-05 20:29:49 +00:00
parent 6476df5865
commit 228a8ffd85
3 changed files with 16 additions and 6 deletions

View File

@ -742,8 +742,9 @@ GLIB_IF_VAR_EQ(mutex_has_default, yes,
dnl ****************************************
dnl *** GLib POLL* compatibility defines ***
dnl ****************************************
GLIB_SYSDEFS([#include <sys/types.h>
#include <sys/poll.h>],
GLIB_SYSDEFS(
[#include <sys/types.h>
#include <sys/poll.h>],
POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32,
glibconfig-sysdefs.h,
=)

View File

@ -8,7 +8,7 @@
#define TEST_PRIVATE_ROUNDS 5
void
test_mutexes ()
test_mutexes (void)
{
GMutex *mutex = NULL;
GCond *cond = NULL;
@ -128,7 +128,7 @@ wait_thread (double seconds)
}
gpointer
private_constructor ()
private_constructor (void)
{
gpointer *result = g_new (gpointer, 2);
result[0] = 0;
@ -169,7 +169,7 @@ test_private_func (void *data)
}
void
test_private ()
test_private (void)
{
int i;
gpointer threads[TEST_PRIVATE_THREADS];
@ -185,7 +185,7 @@ test_private ()
}
int
main ()
main (void)
{
test_mutexes ();

View File

@ -18,8 +18,17 @@
*/
#undef G_LOG_DOMAIN
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "glib.h"
int array[10000];