diff src/gtk/menu-items.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 13ca1defdc75
children 3f2203e70218
line wrap: on
line diff
--- a/src/gtk/menu-items.c	Thu Jun 19 16:42:46 2003 +0000
+++ b/src/gtk/menu-items.c	Fri Jun 20 01:39:44 2003 +0000
@@ -434,7 +434,7 @@
     use_jmp_environment = 0;
 
   wdata->request->stopable = 0;
-  return ((void *) success);
+  return (GINT_TO_POINTER (success));
 }
 
 
@@ -452,7 +452,7 @@
   else
     olddir = NULL;
 
-  ret = (int) generic_thread (do_change_dir_thread, wdata);
+  ret = GPOINTER_TO_INT (generic_thread (do_change_dir_thread, wdata));
 
   if (!GFTP_IS_CONNECTED (wdata->request))
     {