diff lib/rfc959.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 0098dae654a5
line wrap: on
line diff
--- a/lib/rfc959.c	Thu Jun 19 16:42:46 2003 +0000
+++ b/lib/rfc959.c	Fri Jun 20 01:39:44 2003 +0000
@@ -574,7 +574,7 @@
   struct sockaddr_in data_addr;
   int i, passive_transfer;
   rfc959_parms * parms;
-  size_t data_addr_len;
+  socklen_t data_addr_len;
   unsigned int temp[6];
   unsigned char ad[6];
 
@@ -722,7 +722,7 @@
   char *pos, resp, buf[64], *command;
   struct sockaddr_in6 data_addr;
   int passive_transfer;
-  size_t data_addr_len;
+  socklen_t data_addr_len;
   rfc959_parms * parms;
   unsigned int port;
 
@@ -897,7 +897,7 @@
 #else
   struct sockaddr_in6 cli_addr;
 #endif
-  size_t cli_addr_len;
+  socklen_t cli_addr_len;
 
   parms = request->protocol_data;