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



* John Cupitt (jcupitt gmail com) wrote:
> On Wed, 14 Jul 2004 20:53:16 -0700, Carl B. Constantine
> <duckwing duckwing ca> 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( ...

That works great. Thank you.

Now, any ideas on the other problem I had printing the string pointer?

-- 
 .''`.      Carl B. Constantine
: :' :     duckwing duckwing ca
`. `'    GnuPG: 135F FC30 7A02 B0EB 61DB  34E3 3AF1 DC6C 9F7A 3FF8
  `-  Debian GNU/Linux -- The power of freedom
  "Claiming that your operating system is the best in the world because more
  people use it is like saying McDonalds makes the best food in the world."



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