Some warning fixes for the Sun compiler (Reported by David L. Cooper II,
authorOwen Taylor <otaylor@redhat.com>
Sun, 14 Mar 2004 04:15:10 +0000 (04:15 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sun, 14 Mar 2004 04:15:10 +0000 (04:15 +0000)
Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>

        Some warning fixes for the Sun compiler (Reported by
        David L. Cooper II, #136401)

        * glib/giochannel.c (g_io_channel_read): Return
        G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
        function returns a GIOError.

        * glib/guniprop.c: Fix some guchar/gchar confusion
        with special_case_table.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/giochannel.c
glib/guniprop.c

index 68b2687..7ef2f28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>
+
+       Some warning fixes for the Sun compiler (Reported by 
+       David L. Cooper II, #136401)
+
+       * glib/giochannel.c (g_io_channel_read): Return
+       G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
+       function returns a GIOError.
+
+       * glib/guniprop.c: Fix some guchar/gchar confusion
+       with special_case_table.
+
 Fri Mar 12 15:30:58 2004  Manish Singh  <yosh@gimp.org>
 
        * glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
index 68b2687..7ef2f28 100644 (file)
@@ -1,3 +1,15 @@
+Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>
+
+       Some warning fixes for the Sun compiler (Reported by 
+       David L. Cooper II, #136401)
+
+       * glib/giochannel.c (g_io_channel_read): Return
+       G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
+       function returns a GIOError.
+
+       * glib/guniprop.c: Fix some guchar/gchar confusion
+       with special_case_table.
+
 Fri Mar 12 15:30:58 2004  Manish Singh  <yosh@gimp.org>
 
        * glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
index 68b2687..7ef2f28 100644 (file)
@@ -1,3 +1,15 @@
+Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>
+
+       Some warning fixes for the Sun compiler (Reported by 
+       David L. Cooper II, #136401)
+
+       * glib/giochannel.c (g_io_channel_read): Return
+       G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
+       function returns a GIOError.
+
+       * glib/guniprop.c: Fix some guchar/gchar confusion
+       with special_case_table.
+
 Fri Mar 12 15:30:58 2004  Manish Singh  <yosh@gimp.org>
 
        * glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
index 68b2687..7ef2f28 100644 (file)
@@ -1,3 +1,15 @@
+Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>
+
+       Some warning fixes for the Sun compiler (Reported by 
+       David L. Cooper II, #136401)
+
+       * glib/giochannel.c (g_io_channel_read): Return
+       G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
+       function returns a GIOError.
+
+       * glib/guniprop.c: Fix some guchar/gchar confusion
+       with special_case_table.
+
 Fri Mar 12 15:30:58 2004  Manish Singh  <yosh@gimp.org>
 
        * glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
index 68b2687..7ef2f28 100644 (file)
@@ -1,3 +1,15 @@
+Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>
+
+       Some warning fixes for the Sun compiler (Reported by 
+       David L. Cooper II, #136401)
+
+       * glib/giochannel.c (g_io_channel_read): Return
+       G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
+       function returns a GIOError.
+
+       * glib/guniprop.c: Fix some guchar/gchar confusion
+       with special_case_table.
+
 Fri Mar 12 15:30:58 2004  Manish Singh  <yosh@gimp.org>
 
        * glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
index 68b2687..7ef2f28 100644 (file)
@@ -1,3 +1,15 @@
+Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>
+
+       Some warning fixes for the Sun compiler (Reported by 
+       David L. Cooper II, #136401)
+
+       * glib/giochannel.c (g_io_channel_read): Return
+       G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
+       function returns a GIOError.
+
+       * glib/guniprop.c: Fix some guchar/gchar confusion
+       with special_case_table.
+
 Fri Mar 12 15:30:58 2004  Manish Singh  <yosh@gimp.org>
 
        * glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
index 2f384f3..48b6b66 100644 (file)
@@ -186,7 +186,7 @@ g_io_channel_read (GIOChannel *channel,
     {
       if (bytes_read)
         *bytes_read = 0;
-      return G_IO_STATUS_NORMAL;
+      return G_IO_ERROR_NONE;
     }
 
   g_return_val_if_fail (buf != NULL, G_IO_ERROR_UNKNOWN);
index 5d4c4f4..54d191e 100644 (file)
@@ -377,7 +377,7 @@ g_unichar_toupper (gunichar c)
       gunichar val = ATTTABLE (c >> 8, c & 0xff);
       if (val >= 0x1000000)
        {
-         const guchar *p = special_case_table + val - 0x1000000;
+         const gchar *p = special_case_table + val - 0x1000000;
          return g_utf8_get_char (p);
        }
       else
@@ -414,7 +414,7 @@ g_unichar_tolower (gunichar c)
       gunichar val = ATTTABLE (c >> 8, c & 0xff);
       if (val >= 0x1000000)
        {
-         const guchar *p = special_case_table + val - 0x1000000;
+         const gchar *p = special_case_table + val - 0x1000000;
          return g_utf8_get_char (p);
        }
       else
@@ -578,7 +578,7 @@ output_special_case (gchar *out_buffer,
                     int    type,
                     int    which)
 {
-  const guchar *p = special_case_table + offset;
+  const gchar *p = special_case_table + offset;
   gint len;
 
   if (type != G_UNICODE_TITLECASE_LETTER)