diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-04-24 00:28:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-04-24 00:28:21 +0000 |
commit | 799672571bd9d201f1f0b61944ee6fcfcb1720d2 (patch) | |
tree | f9c2773450b483e22320568263fd2b3dd4a0c950 /gtk | |
parent | a39e4e8a5dcb477854dd34ae7d4c31f6e77cd570 (diff) | |
download | wireshark-799672571bd9d201f1f0b61944ee6fcfcb1720d2.tar.gz wireshark-799672571bd9d201f1f0b61944ee6fcfcb1720d2.tar.bz2 wireshark-799672571bd9d201f1f0b61944ee6fcfcb1720d2.zip |
Signed vs. unsigned fixes from Joerg Mayer.
svn path=/trunk/; revision=3373
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/colors.c | 4 | ||||
-rw-r--r-- | gtk/gtkclist.c | 12 | ||||
-rw-r--r-- | gtk/main.c | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/gtk/colors.c b/gtk/colors.c index 14219b7db1..0b9c04e47c 100644 --- a/gtk/colors.c +++ b/gtk/colors.c @@ -1,7 +1,7 @@ /* colors.c * Definitions for color structures and routines * - * $Id: colors.c,v 1.8 2001/04/02 09:53:46 guy Exp $ + * $Id: colors.c,v 1.9 2001/04/24 00:28:21 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -207,7 +207,7 @@ read_filters(colfilter *filter) if(!fgets(buf,sizeof buf, f)) break; - if(strspn( buf," \t") == (strchr(buf,'*') - buf)){ + if(strspn( buf," \t") == (size_t)((strchr(buf,'*') - buf))){ /* leading # comment */ continue; } diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 7afe0500ae..366547f5db 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -885,7 +885,7 @@ gtk_clist_get_arg (GtkObject *object, switch (arg_id) { - guint i; + gint i; case ARG_N_COLUMNS: GTK_VALUE_UINT (*arg) = clist->columns; @@ -1042,7 +1042,7 @@ gtk_clist_construct (GtkCList *clist, if (titles) { - guint i; + gint i; GTK_CLIST_SET_FLAG (clist, CLIST_SHOW_TITLES); for (i = 0; i < columns; i++) @@ -5515,7 +5515,7 @@ gtk_clist_forall (GtkContainer *container, gpointer callback_data) { GtkCList *clist; - guint i; + gint i; g_return_if_fail (container != NULL); g_return_if_fail (GTK_IS_CLIST (container)); @@ -7591,7 +7591,7 @@ gtk_clist_drag_leave (GtkWidget *widget, list = context->targets; while (list) { - if (atom == GPOINTER_TO_INT (list->data)) + if (atom == GPOINTER_TO_UINT (list->data)) { GTK_CLIST_CLASS_FW (clist)->draw_drag_highlight (clist, @@ -7646,7 +7646,7 @@ gtk_clist_drag_motion (GtkWidget *widget, list = context->targets; while (list) { - if (atom == GPOINTER_TO_INT (list->data)) + if (atom == GPOINTER_TO_UINT (list->data)) break; list = list->next; } @@ -7720,7 +7720,7 @@ gtk_clist_drag_drop (GtkWidget *widget, list = context->targets; while (list) { - if (atom == GPOINTER_TO_INT (list->data)) + if (atom == GPOINTER_TO_UINT (list->data)) return TRUE; list = list->next; } diff --git a/gtk/main.c b/gtk/main.c index dc818dfe34..5629d5eafc 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1,6 +1,6 @@ /* main.c * - * $Id: main.c,v 1.195 2001/04/19 23:06:23 guy Exp $ + * $Id: main.c,v 1.196 2001/04/24 00:28:21 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1546,7 +1546,7 @@ boldify(const char *font_name) { char *bold_font_name; gchar **xlfd_tokens; - int i; + unsigned int i; /* Is this an XLFD font? If it begins with "-", yes, otherwise no. */ if (font_name[0] == '-') { |