Hi,

On Wed, 5 Mar 2003, Ben LeMasurier wrote:
> warning: assignment makes pointer from integer without a cast
> 
> gethostbyname() requests a char *
> and gtk_entry_get_text() returns G_CONST_RETURN gchar*

        According to the glib docs, a G_CONST_RETURN gchar* is typedef'ed
to a char* (See glib, basic types in the docs).  But, as it stresses in
the gtk_entry_get_text (), you shouldn'tfree, modify, or store it.  I
think I malloc'ed a temporary variable of type char * and did a strcpy and
that worked fine.  Just don't try storing it with an assignment...

Ray


_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to