diff lib/protocols.c @ 136:84b3e69807a2

2003-4-18 Brian Masney <masneyb@gftp.org> * lib/config_file.c lib/gftp.h - removed gftp_option_type_subtree, gftp_option_type_table and gftp_option_type_newtable * lib/config_file.c - implemented gftp_set_request_option() * lib/gftp.h lib/config_file.c - changed declaration of ui_print_function in struct gftp_option_type. Also added ui_save_function field to this structure * lib/gftp.h added local_options_vars num_local_options_vars variables to gftp_request * lib/local.c (local_set_directory) - small improvements to this function * lib/misc.c - added gftp_copy_local_options() * lib/options.h - fix declaration of General tab * lib/protocols.c - free local options * lib/rfc2068.c - check to see if we're connecting to a FTP site via proxy * lib/rfc959.c lib/protocols.c - changes for CRAY directory listings * src/gtk/gftp-gtk.h - added struct gftp_options_dialog_data and struct gftp_textcomboedt_widget_data * src/gtk/options_dialog.c - start to use new configuration interface * src/gtk/transfer.c - remove FIXME note. This is already in lib/gftp.h
author masneyb
date Fri, 18 Apr 2003 19:38:34 +0000
parents b875de05c22d
children 5c952c5cb438
line wrap: on
line diff
--- a/lib/protocols.c	Fri Apr 18 16:02:38 2003 +0000
+++ b/lib/protocols.c	Fri Apr 18 19:38:34 2003 +0000
@@ -20,7 +20,6 @@
 #include "gftp.h"
 static const char cvsid[] = "$Id$";
 
-/* {{{ gftp_request_new */
 gftp_request *
 gftp_request_new (void)
 {
@@ -33,7 +32,7 @@
   request->server_type = GFTP_DIRTYPE_OTHER;
   return (request);
 }
-/* }}} */
+
 
 void
 gftp_request_destroy (gftp_request * request, int free_request)
@@ -76,7 +75,9 @@
       request->datafd = -1;
       request->cachefd = -1;
     }
-  /* FIXME - free local_options */
+
+  g_free (request->local_options_vars);
+  g_hash_table_destroy (request->local_options_hash);
 }
 
 
@@ -1115,8 +1116,7 @@
       startpos = goto_next_token (startpos);
     }
 
-  /* FIXME - make this GFTP_DIRTYPE_CRAY */
-  if (request->server_type != GFTP_DIRTYPE_UNIX)
+  if (request->server_type != GFTP_DIRTYPE_CRAY)
     {
       /* See if this is a Cray directory listing. It has the following format:
       drwx------     2 feiliu    g913     DK  common      4096 Sep 24  2001 wv */