diff src/gtk/menu-items.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 afbe37351940
line wrap: on
line diff
--- a/src/gtk/menu-items.c	Fri Jul 14 00:37:27 2006 +0000
+++ b/src/gtk/menu-items.c	Fri Jul 14 01:53:42 2006 +0000
@@ -276,7 +276,8 @@
 void 
 clearlog (gpointer data)
 {
-  guint len;
+  gint len;
+
 #if GTK_MAJOR_VERSION == 1
   len = gtk_text_get_length (GTK_TEXT (logwdw));
   gtk_text_set_point (GTK_TEXT (logwdw), len);
@@ -298,7 +299,7 @@
 viewlog (gpointer data)
 {
   char *tempstr, *txt, *pos;
-  guint textlen;
+  gint textlen;
   ssize_t len;
   int fd;
 #if GTK_MAJOR_VERSION > 1
@@ -361,7 +362,7 @@
 {
   const char *filename;
   char *txt, *pos;
-  guint textlen;
+  gint textlen;
   ssize_t len;
   FILE *fd;
   int ok;
@@ -457,7 +458,7 @@
 #if GTK_MAJOR_VERSION > 1
   GtkTextBuffer * textbuf;
   GtkTextIter iter;
-  guint textlen;
+  gint textlen;
 #endif
 
   share_dir = gftp_get_share_dir ();
@@ -505,7 +506,8 @@
   str = _("Translated by");
   if (strcmp (str, "Translated by") != 0)
     {
-      tempstr = g_realloc (tempstr, strlen (tempstr) + strlen (str) + 1);
+      tempstr = g_realloc (tempstr,
+                           (gulong) (strlen (tempstr) + strlen (str) + 1));
       strcat (tempstr, str);
     }
   tempwid = gtk_label_new (tempstr);