Re: Prototype of g_io_channel_write() and gnet_iochennel_writen()



> From: Loban Rahman <loban earthling net>
>
> These are the current prototypes:
>
>     GIOError  g_io_channel_write    (GIOChannel    *channel,
>                                      gchar         *buf,
>                                      guint          count,
>                                      guint         *bytes_written);
>
>     GIOError gnet_io_channel_writen (GIOChannel    *channel, 
>                                      gchar         *buf, 
>                                      guint          len,
>                                      guint         *bytes_written);
>
> I propose they ought to be:
>
>     GIOError  g_io_channel_write    (GIOChannel    *channel,
>                                      const gchar    *buf,
>                                      guint          count,
>                                      guint         *bytes_written);
>
>     GIOError gnet_io_channel_writen (GIOChannel    *channel, 
>                                      const gchar   *buf, 
>                                      guint          len,
>                                      guint         *bytes_written);
>
> because the contents of buf shouldn't change.

In the case of glib, this is already fixed in CVS. Do we need to backport this
to 1.2?

Ron Steinke




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]