Commit 30265b80 authored by Anders Carlsson's avatar Anders Carlsson

2003-02-15 Anders Carlsson <andersca@codefactory.se>

	* dbus/dbus-list.c: (_dbus_list_append_link),
	(_dbus_list_prepend_link):
	* dbus/dbus-memory.c: (dbus_malloc), (dbus_malloc0),
	(dbus_realloc):
	Warning fixes.
parent efd53eca
2003-02-15 Anders Carlsson <andersca@codefactory.se>
* dbus/dbus-list.c: (_dbus_list_append_link),
(_dbus_list_prepend_link):
* dbus/dbus-memory.c: (dbus_malloc), (dbus_malloc0),
(dbus_realloc):
Warning fixes.
2003-02-15 Anders Carlsson <andersca@codefactory.se>
* bus/Makefile.am:
......
......@@ -287,8 +287,6 @@ _dbus_list_append_link (DBusList **list,
/* Now cycle the list forward one so the prepended node is the tail */
*list = (*list)->next;
return TRUE;
}
/**
......@@ -304,8 +302,6 @@ _dbus_list_prepend_link (DBusList **list,
DBusList *link)
{
link_before (list, *list, link);
return TRUE;
}
/**
......
......@@ -75,7 +75,7 @@
#ifdef DBUS_BUILD_TESTS
static dbus_bool_t inited = FALSE;
static int fail_counts = -1;
static int fail_size = -1;
static size_t fail_size = 0;
#endif
#ifdef DBUS_BUILD_TESTS
......@@ -125,7 +125,7 @@ dbus_malloc (size_t bytes)
if (bytes == 0) /* some system mallocs handle this, some don't */
return NULL;
#if DBUS_BUILD_TESTS
else if (fail_size != -1 && bytes > fail_size)
else if (fail_size != 0 && bytes > fail_size)
return NULL;
#endif
else
......@@ -159,7 +159,7 @@ dbus_malloc0 (size_t bytes)
if (bytes == 0)
return NULL;
#if DBUS_BUILD_TESTS
else if (fail_size != -1 && bytes > fail_size)
else if (fail_size != 0 && bytes > fail_size)
return NULL;
#endif
else
......@@ -198,7 +198,7 @@ dbus_realloc (void *memory,
return NULL;
}
#if DBUS_BUILD_TESTS
else if (fail_size != -1 && bytes > fail_size)
else if (fail_size != 0 && bytes > fail_size)
return NULL;
#endif
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment