diff lib/config_file.c @ 374:d207b8241e96

2003-1-21 Brian Masney <masneyb@gftp.org> * lib/config_file.c lib/gftp.h - set the character string arguments to const for the following functions: gftp_lookup_global_option(), gftp_lookup_request_option(), gftp_lookup_bookmark_option(), gftp_set_global_option(), gftp_set_request_option(), gftp_set_bookmark_option() * lib/misc.c lib/gftp.h - set the character string arguments to const for the function gftp_match_filespec() * src/gtk/gftp-gtk.c src/gtk/menu-items.c src/uicommon/gftpui.c - moved more UI independant parts to the uicommon directory. Moved some GUI specific functionality into gftp-gtk.c * src/text/gftp-text.c src/gtk/gftp-gtk.c src/uicommon/gftpui.c - pass the local/remote uidata/request structures to process_command(). Removed old function gftpui_common_init(). Added new gftpui_common_init() that sets up common functionality for a port. * src/gtk/gtkui.c src/gtk/gtkui_transfer.c - moved gftpui_add_file_to_transfer() to gtkui_transfer.c * src/gtk/gtkui_transfer.c - cleaned up these functions some and made them more modular * src/uicommon/gftpui.c src/uicommon/gftpui.h - for all of the command line functions, make the command argument a constant
author masneyb
date Wed, 21 Jan 2004 23:35:40 +0000
parents 6317b45645a8
children 2f5ce7fb5aad
line wrap: on
line diff
--- a/lib/config_file.c	Wed Jan 21 16:46:01 2004 +0000
+++ b/lib/config_file.c	Wed Jan 21 23:35:40 2004 +0000
@@ -1249,7 +1249,7 @@
 
 
 void
-gftp_lookup_global_option (char * key, void *value)
+gftp_lookup_global_option (const char * key, void *value)
 {
   gftp_config_list_vars * tmplistvar;
   gftp_config_vars * tmpconfigvar;
@@ -1270,7 +1270,8 @@
 
 
 void
-gftp_lookup_request_option (gftp_request * request, char * key, void *value)
+gftp_lookup_request_option (gftp_request * request, const char * key,
+                            void *value)
 {
   gftp_config_vars * tmpconfigvar;
 
@@ -1284,7 +1285,8 @@
 
 
 void
-gftp_lookup_bookmark_option (gftp_bookmarks_var * bm, char * key, void *value)
+gftp_lookup_bookmark_option (gftp_bookmarks_var * bm, const char * key,
+                             void *value)
 {
   gftp_config_vars * tmpconfigvar;
 
@@ -1298,7 +1300,7 @@
 
 
 void
-gftp_set_global_option (char * key, const void *value)
+gftp_set_global_option (const char * key, const void *value)
 {
   gftp_config_vars * tmpconfigvar, newconfigvar;
   void *nc_ptr;
@@ -1348,7 +1350,8 @@
 
 
 void
-gftp_set_request_option (gftp_request * request, char * key, const void *value)
+gftp_set_request_option (gftp_request * request, const char * key,
+                         const void *value)
 {
   gftp_config_vars * tmpconfigvar;
 
@@ -1382,7 +1385,8 @@
 
 
 void
-gftp_set_bookmark_option (gftp_bookmarks_var * bm, char * key, const void *value)
+gftp_set_bookmark_option (gftp_bookmarks_var * bm, const char * key,
+                          const void *value)
 {
   gftp_config_vars * tmpconfigvar, newconfigvar;
   int ret;