diff 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
line wrap: on
line diff
--- a/src/gtk/gftp-gtk.c	Thu Jun 19 16:42:46 2003 +0000
+++ b/src/gtk/gftp-gtk.c	Fri Jun 20 01:39:44 2003 +0000
@@ -909,7 +909,7 @@
     disconnect (current_wdata);
 
   tempwid = gtk_menu_get_active (GTK_MENU (protocol_menu));
-  num = (int) gtk_object_get_user_data (GTK_OBJECT (tempwid));
+  num = GPOINTER_TO_INT (gtk_object_get_user_data (GTK_OBJECT (tempwid)));
   init = gftp_protocols[num].init;
   if (init (current_wdata->request) < 0)
     return;