diff src/gtk/transfer.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 cf4098008615
line wrap: on
line diff
--- a/src/gtk/transfer.c	Thu Jun 19 16:42:46 2003 +0000
+++ b/src/gtk/transfer.c	Fri Jun 20 01:39:44 2003 +0000
@@ -292,7 +292,7 @@
   request->stopable = 0;
   if (request->wakeup_main_thread[1] > 0)
     write (request->wakeup_main_thread[1], " ", 1);
-  return ((void *) ret);
+  return (GINT_TO_POINTER (ret));
 }
 
 
@@ -366,7 +366,8 @@
     }
   else
     ret = connect_thread (request);
-  success = (int) ret;
+
+  success = GPOINTER_TO_INT (ret);
   memset (&wdata->tid, 0, sizeof (wdata->tid));
 
   if (!GFTP_IS_CONNECTED (wdata->request))
@@ -537,7 +538,7 @@
     use_jmp_environment = 0;
 
   transfer->fromreq->stopable = 0;
-  return ((void *) success);
+  return (GINT_TO_POINTER (success));
 }