Mercurial > gftp.yaz
diff src/gtk/misc-gtk.c @ 767:49cfbe02926b
2006-7-13 Brian Masney <masneyb@gftp.org>
* src/gtk/bookmarks.c src/gtk/delete_dialog.c src/gtk/dnd.c
src/gtk/gftp-gtk.c src/gtk/gftp-gtk.h src/gtk/gtkui.c
src/gtk/menu-items.c src/gtk/misc-gtk.c src/gtk/options_dialog.c
src/gtk/transfer.c src/gtk/view_dialog.c - fixed a few minor warnings
from splint.
author | masneyb |
---|---|
date | Fri, 14 Jul 2006 01:53:42 +0000 |
parents | 8990a8a26ccf |
children | 6f766002bff2 |
line wrap: on
line diff
--- a/src/gtk/misc-gtk.c Fri Jul 14 00:37:27 2006 +0000 +++ b/src/gtk/misc-gtk.c Fri Jul 14 01:53:42 2006 +0000 @@ -209,9 +209,8 @@ update_window_info (void) { char *tempstr, empty[] = ""; + unsigned int port, i; GtkWidget * tempwid; - unsigned int port; - int i; if (current_wdata->request != NULL) { @@ -499,8 +498,9 @@ int -check_status (char *name, gftp_window_data *wdata, int check_other_stop, - int only_one, int at_least_one, int func) +check_status (char *name, gftp_window_data *wdata, + unsigned int check_other_stop, unsigned int only_one, + unsigned int at_least_one, unsigned int func) { gftp_window_data * owdata; @@ -594,12 +594,12 @@ void -create_item_factory (GtkItemFactory * ifactory, guint n_entries, - GtkItemFactoryEntry * entries, gpointer callback_data) +create_item_factory (GtkItemFactory * ifactory, gint n_entries, + GtkItemFactoryEntry * entries, gpointer callback_data) { const char *strip_prefix; size_t strip_prefix_len; - size_t i; + int i; strip_prefix = gtk_object_get_data (GTK_OBJECT (ifactory), "gftp-strip-prefix"); if (strip_prefix) @@ -676,7 +676,7 @@ { return (wdata->request->cached && wdata->request->datafd < 0 && !wdata->request->always_connected && - !ftp_connect (wdata, wdata->request, 0) ? -1 : 0); + !ftp_connect (wdata, wdata->request) ? -1 : 0); } @@ -1285,7 +1285,7 @@ printf (_("gFTP Error: Cannot find file %s in %s or %s\n"), filename, share_dir, BASE_CONF_DIR); - exit (1); + exit (EXIT_FAILURE); } } }