comparison src/gtk/gftp-gtk.c @ 195:3fa7b4f4ab78

2003-6-19 Brian Masney <masneyb@gftp.org> * autogen.sh - updated to hopefully make it more portable across various systems * lib/rfc959.c - change variable type of data_addr_len from size_t to socklen_t (fixed warnings on 64 bit machines) * src/gtk/chmod_dialog.c src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/misc-gtk.c src/gtk/mkdir_dialog.c src/gtk/options_dialog.c src/gtk/rename_dialog.c src/gtk/transfer.c - rather than casting from integer to pointer and vice versa, use GINT_TO_POINTER and GPOINTER_TO_INT. These macros do the exact same thing and I'm still getting compiler warnings on Debian Sparc64 with -m64, but at least I'll be able to fix the define in glib and then these warnings will be fixed then
author masneyb
date Fri, 20 Jun 2003 01:39:44 +0000
parents 4c288d05b26a
children 8fea1b1a2ec6
comparison
equal deleted inserted replaced
194:ab1bf7e5f407 195:3fa7b4f4ab78
907 907
908 if (GFTP_IS_CONNECTED (current_wdata->request)) 908 if (GFTP_IS_CONNECTED (current_wdata->request))
909 disconnect (current_wdata); 909 disconnect (current_wdata);
910 910
911 tempwid = gtk_menu_get_active (GTK_MENU (protocol_menu)); 911 tempwid = gtk_menu_get_active (GTK_MENU (protocol_menu));
912 num = (int) gtk_object_get_user_data (GTK_OBJECT (tempwid)); 912 num = GPOINTER_TO_INT (gtk_object_get_user_data (GTK_OBJECT (tempwid)));
913 init = gftp_protocols[num].init; 913 init = gftp_protocols[num].init;
914 if (init (current_wdata->request) < 0) 914 if (init (current_wdata->request) < 0)
915 return; 915 return;
916 916
917 gftp_set_hostname (current_wdata->request, gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (hostedit)->entry))); 917 gftp_set_hostname (current_wdata->request, gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (hostedit)->entry)));