Re: fix for: assignment discards qualifiers from pointer target type

2004-07-27 Thread Carl B. Constantine
* John Cupitt ([EMAIL PROTECTED]) wrote: On Wed, 14 Jul 2004 20:53:16 -0700, Carl B. Constantine [EMAIL PROTECTED] wrote: gchar *userid = NULL; userid = gtk_entry_get_text(GTK_ENTRY(lookup_widget(logon, password))); Try const char *userid = gtk_entry_get_text( GTK_ENTRY( ...

fix for: assignment discards qualifiers from pointer target type

2004-07-14 Thread Carl B. Constantine
I'm getting the following warning message on compile: filename.c:124: warning: assignment discards qualifiers from pointer target type. This occurs on lines such as this: ... gchar *userid = NULL; userid = gtk_entry_get_text(GTK_ENTRY(lookup_widget(logon, password))); but,

Re: fix for: assignment discards qualifiers from pointer target type

2004-07-14 Thread John Cupitt
On Wed, 14 Jul 2004 20:53:16 -0700, Carl B. Constantine [EMAIL PROTECTED] wrote: gchar *userid = NULL; userid = gtk_entry_get_text(GTK_ENTRY(lookup_widget(logon, password))); Try const char *userid = gtk_entry_get_text( GTK_ENTRY( ... John ___