# HG changeset patch # User masneyb # Date 1074457099 0 # Node ID af541d789f4cebe04bf20eb79e4e8f906a89ad4b # Parent d5409bf03ff19aa4492cefdb4fc1d4abe2a8d6e4 2003-1-18 Brian Masney * lib/gftp.h lib/misc.c src/gtk/delete_dialog.c src/gtk/transfer.c src/gtk/view_dialog.c src/uicommon/gftpui.c - renamed all instances of copy_request() to gftp_copy_request(). Removed second argument (copy_local_options), the options are always copied now. diff -r d5409bf03ff1 -r af541d789f4c ChangeLog --- a/ChangeLog Sun Jan 18 20:09:28 2004 +0000 +++ b/ChangeLog Sun Jan 18 20:18:19 2004 +0000 @@ -1,4 +1,9 @@ 2003-1-18 Brian Masney + * lib/gftp.h lib/misc.c src/gtk/delete_dialog.c src/gtk/transfer.c + src/gtk/view_dialog.c src/uicommon/gftpui.c - renamed all instances of + copy_request() to gftp_copy_request(). Removed second argument + (copy_local_options), the options are always copied now. + * lib/protocols.c (gftp_parse_url) - if the URL is the local filesystem, skip over the whitespace at the beginning. @@ -2004,7 +2009,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.201 2004/01/18 20:09:24 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.202 2004/01/18 20:18:17 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r d5409bf03ff1 -r af541d789f4c lib/gftp.h --- a/lib/gftp.h Sun Jan 18 20:09:28 2004 +0000 +++ b/lib/gftp.h Sun Jan 18 20:18:19 2004 +0000 @@ -706,8 +706,7 @@ void free_tdata ( gftp_transfer * tdata ); -gftp_request * copy_request ( gftp_request * req, - int copy_local_options ); +gftp_request * gftp_copy_request ( gftp_request * req ); GList * gftp_sort_filelist ( GList * filelist, int column, diff -r d5409bf03ff1 -r af541d789f4c lib/misc.c --- a/lib/misc.c Sun Jan 18 20:09:28 2004 +0000 +++ b/lib/misc.c Sun Jan 18 20:18:19 2004 +0000 @@ -586,7 +586,7 @@ gftp_request * -copy_request (gftp_request * req, int copy_local_options) +gftp_copy_request (gftp_request * req) { gftp_request * newreq; @@ -608,11 +608,10 @@ newreq->free_hostp = 0; newreq->hostp = NULL; - if (copy_local_options) - gftp_copy_local_options (&newreq->local_options_vars, - &newreq->local_options_hash, - req->local_options_vars, - req->num_local_options_vars); + gftp_copy_local_options (&newreq->local_options_vars, + &newreq->local_options_hash, + req->local_options_vars, + req->num_local_options_vars); if (req->init (newreq) < 0) { diff -r d5409bf03ff1 -r af541d789f4c src/gtk/delete_dialog.c --- a/src/gtk/delete_dialog.c Sun Jan 18 20:09:28 2004 +0000 +++ b/src/gtk/delete_dialog.c Sun Jan 18 20:18:19 2004 +0000 @@ -177,7 +177,7 @@ return; transfer = g_malloc0 (sizeof (*transfer)); - transfer->fromreq = copy_request (wdata->request, 0); + transfer->fromreq = gftp_copy_request (wdata->request); transfer->fromwdata = wdata; num = 0; diff -r d5409bf03ff1 -r af541d789f4c src/gtk/transfer.c --- a/src/gtk/transfer.c Sun Jan 18 20:09:28 2004 +0000 +++ b/src/gtk/transfer.c Sun Jan 18 20:18:19 2004 +0000 @@ -105,8 +105,8 @@ return; transfer = g_malloc0 (sizeof (*transfer)); - transfer->fromreq = copy_request (fromwdata->request, 0); - transfer->toreq = copy_request (towdata->request, 0); + transfer->fromreq = gftp_copy_request (fromwdata->request); + transfer->toreq = gftp_copy_request (towdata->request); transfer->fromwdata = fromwdata; transfer->towdata = towdata; diff -r d5409bf03ff1 -r af541d789f4c src/gtk/view_dialog.c --- a/src/gtk/view_dialog.c Sun Jan 18 20:09:28 2004 +0000 +++ b/src/gtk/view_dialog.c Sun Jan 18 20:18:19 2004 +0000 @@ -199,7 +199,7 @@ newproc->fromwdata = &window1; newproc->towdata = &window2; } - newproc->torequest = copy_request (newproc->towdata->request, 1); + newproc->torequest = gftp_copy_request (newproc->towdata->request); newproc->filename = g_strdup (filename); if (remote_filename != NULL) newproc->remote_filename = g_strdup (remote_filename); diff -r d5409bf03ff1 -r af541d789f4c src/uicommon/gftpui.c --- a/src/uicommon/gftpui.c Sun Jan 18 20:09:28 2004 +0000 +++ b/src/uicommon/gftpui.c Sun Jan 18 20:18:19 2004 +0000 @@ -1036,8 +1036,8 @@ if (templist == NULL) { tdata = gftp_tdata_new (); - tdata->fromreq = copy_request (fromreq, 0); - tdata->toreq = copy_request (toreq, 0); + tdata->fromreq = gftp_copy_request (fromreq); + tdata->toreq = gftp_copy_request (toreq); tdata->fromwdata = fromuidata; tdata->towdata = touidata;