* 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>
+
+ * 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:
/* Now cycle the list forward one so the prepended node is the tail */
*list = (*list)->next;
-
- return TRUE;
}
/**
DBusList *link)
{
link_before (list, *list, link);
-
- return TRUE;
}
/**
#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
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
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
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