Mercurial > gftp.yaz
changeset 349:3fccdc9eb16f
2003-1-4 Brian Masney <masneyb@gftp.org>
* lib/misc.c (gftp_parse_command_line) - unified this function so that
it is consistent for all arguments.
* lib/protocols.c (gftp_file_destroy) - fixed memory leak (utf8_file
was not being freed)
author | masneyb |
---|---|
date | Sun, 04 Jan 2004 17:26:50 +0000 |
parents | 0c49989ba4f2 |
children | e5ad008e7ea8 |
files | ChangeLog lib/misc.c lib/protocols.c |
diffstat | 3 files changed, 16 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jan 04 17:23:58 2004 +0000 +++ b/ChangeLog Sun Jan 04 17:26:50 2004 +0000 @@ -1,4 +1,10 @@ 2003-1-4 Brian Masney <masneyb@gftp.org> + * lib/misc.c (gftp_parse_command_line) - unified this function so that + it is consistent for all arguments. + + * lib/protocols.c (gftp_file_destroy) - fixed memory leak (utf8_file + was not being freed) + * docs/gftp-faq.sgml - updated link to the (old) threaded version of XFree86 libraries @@ -1892,7 +1898,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.190 2004/01/04 17:23:58 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.191 2004/01/04 17:26:50 masneyb Exp $ tags * debian/* - updated files from Debian maintainer
--- a/lib/misc.c Sun Jan 04 17:23:58 2004 +0000 +++ b/lib/misc.c Sun Jan 04 17:26:50 2004 +0000 @@ -388,17 +388,20 @@ { if (strcmp (argv[0][1], "--help") == 0 || strcmp (argv[0][1], "-h") == 0) - gftp_usage (); + { + gftp_usage (); + exit (0); + } else if (strcmp (argv[0][1], "--version") == 0 || strcmp (argv[0][1], "-v") == 0) { - printf ("%s\n", gftp_version); - exit (0); + printf ("%s\n", gftp_version); + exit (0); } else if (strcmp (argv[0][1], "--info") == 0) { gftp_info (); - exit (0); + exit (0); } } return (0);