2004-10-23 Matthias Clasen <mclasen@redhat.com>
+ * glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
+ glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
+ glib/libcharset/localcharset.c: Apply a patch to fix
+ sparse warnings. (#154696, Kjartan Maraas)
+
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
them, since they may also be macros. (#155177, Andrea Campi)
2004-10-23 Matthias Clasen <mclasen@redhat.com>
+ * glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
+ glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
+ glib/libcharset/localcharset.c: Apply a patch to fix
+ sparse warnings. (#154696, Kjartan Maraas)
+
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
them, since they may also be macros. (#155177, Andrea Campi)
2004-10-23 Matthias Clasen <mclasen@redhat.com>
+ * glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
+ glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
+ glib/libcharset/localcharset.c: Apply a patch to fix
+ sparse warnings. (#154696, Kjartan Maraas)
+
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
them, since they may also be macros. (#155177, Andrea Campi)
2004-10-23 Matthias Clasen <mclasen@redhat.com>
+ * glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
+ glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
+ glib/libcharset/localcharset.c: Apply a patch to fix
+ sparse warnings. (#154696, Kjartan Maraas)
+
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
them, since they may also be macros. (#155177, Andrea Campi)
2004-10-23 Matthias Clasen <mclasen@redhat.com>
+ * glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
+ glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
+ glib/libcharset/localcharset.c: Apply a patch to fix
+ sparse warnings. (#154696, Kjartan Maraas)
+
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
them, since they may also be macros. (#155177, Andrea Campi)
* Return value: the new #GAsyncQueue.
**/
GAsyncQueue*
-g_async_queue_new ()
+g_async_queue_new (void)
{
GAsyncQueue* retval = g_new (GAsyncQueue, 1);
retval->mutex = g_mutex_new ();
#endif /* ATOMIC_INT_CMP_XCHG */
void
-_g_atomic_thread_init ()
+_g_atomic_thread_init (void)
{
#ifdef DEFINE_WITH_MUTEXES
g_atomic_mutex = g_mutex_new ();
#include <locale.h>
GDate*
-g_date_new ()
+g_date_new (void)
{
GDate *d = g_new0 (GDate, 1); /* happily, 0 is the invalid flag for everything. */
g_io_channel_get_line_term (GIOChannel *channel,
gint *length)
{
- g_return_val_if_fail (channel != NULL, 0);
+ g_return_val_if_fail (channel != NULL, NULL);
if (length)
*length = channel->line_term_len;
}
void
-_g_main_thread_init ()
+_g_main_thread_init (void)
{
GSList *curr = main_contexts_without_pipe;
while (curr)
* Return value: the new #GMainContext
**/
GMainContext *
-g_main_context_new ()
+g_main_context_new (void)
{
GMainContext *context = g_new0 (GMainContext, 1);
GError **error)
{
gboolean retval;
- gchar **argv = 0;
+ gchar **argv = NULL;
g_return_val_if_fail (command_line != NULL, FALSE);
GError **error)
{
gboolean retval;
- gchar **argv = 0;
+ gchar **argv = NULL;
g_return_val_if_fail (command_line != NULL, FALSE);
/* Return a pointer to the contents of the charset.alias file. */
const char *
-_g_locale_get_charset_aliases ()
+_g_locale_get_charset_aliases (void)
{
const char *cp;
name. */
const char *
-_g_locale_charset_raw ()
+_g_locale_charset_raw (void)
{
const char *codeset;