Mercurial > gftp.yaz
changeset 766:1ad4eb5c29de
2006-7-13 Brian Masney <masneyb@gftp.org>
* src/text/textui.c src/uicommon/gftpui.c - fixed a few minor warnings
from splint.
author | masneyb |
---|---|
date | Fri, 14 Jul 2006 00:37:27 +0000 |
parents | d553d14a2565 |
children | 49cfbe02926b |
files | ChangeLog src/text/textui.c src/uicommon/gftpui.c |
diffstat | 3 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Jul 14 00:34:11 2006 +0000 +++ b/ChangeLog Fri Jul 14 00:37:27 2006 +0000 @@ -1,4 +1,7 @@ 2006-7-13 Brian Masney <masneyb@gftp.org> + * src/text/textui.c src/uicommon/gftpui.c - fixed a few minor warnings + from splint. + * lib/cache.c lib/config_file.c lib/fsp.c lib/ftps.c lib/gftp.h lib/local.c lib/misc.c lib/options.h lib/protocols.c lib/rfc2068.c lib/rfc959.c lib/sshv2.c - started to add some annotations for splint. @@ -3406,7 +3409,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.438 2006/07/14 00:34:10 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.439 2006/07/14 00:37:26 masneyb Exp $ tags * debian/* - updated files from Debian maintainer
--- a/src/text/textui.c Fri Jul 14 00:34:11 2006 +0000 +++ b/src/text/textui.c Fri Jul 14 00:37:27 2006 +0000 @@ -184,7 +184,7 @@ { static int progress_pos = 0; char *progress = "|/-\\"; - int sw, tot, i; + unsigned int sw, tot, i; printf ("\r%c [", progress[progress_pos++]); @@ -192,15 +192,15 @@ progress_pos = 0; sw = gftp_text_get_win_size () - 20; - tot = (float) tdata->curtrans / (float) tdata->tot_file_trans * (float) sw; + tot = (unsigned int) ((float) tdata->curtrans / (float) tdata->tot_file_trans * (float) sw); if (tot > sw) tot = sw; - for (i=0; i<tot; i++) + for (i = 0; i < tot; i++) printf ("="); - for (i=0; i<sw-tot; i++) + for (i = 0; i < sw - tot; i++) printf (" "); printf ("] @ %.2fKB/s", tdata->kbs);
--- a/src/uicommon/gftpui.c Fri Jul 14 00:34:11 2006 +0000 +++ b/src/uicommon/gftpui.c Fri Jul 14 00:37:27 2006 +0000 @@ -136,7 +136,7 @@ if (gftpui_common_use_jmp_environment) siglongjmp (gftpui_common_jmp_environment, signo == SIGINT ? 1 : 2); else if (signo == SIGINT) - exit (1); + exit (EXIT_FAILURE); } @@ -173,7 +173,7 @@ share_dir = gftp_get_share_dir (); gftp_read_config_file (share_dir); if (gftp_parse_command_line (argc, argv) != 0) - exit (0); + exit (EXIT_FAILURE); gftpui_common_logfunc = logfunc; gftpui_common_child_process_done = -1;