This gets rid of signed/unsigned warnings in the gtk/ directory.
Ciao
Jörg
--
Joerg Mayer <jmayer@xxxxxxxxx>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.
Index: ethereal/gtk/colors.c
===================================================================
RCS file: /cvsroot/ethereal/gtk/colors.c,v
retrieving revision 1.8
diff -u -u -r1.8 colors.c
--- colors.c 2001/04/02 09:53:46 1.8
+++ colors.c 2001/04/24 00:12:15
@@ -207,7 +207,7 @@
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;
}
Index: ethereal/gtk/gtkclist.c
===================================================================
RCS file: /cvsroot/ethereal/gtk/gtkclist.c,v
retrieving revision 1.7
diff -u -u -r1.7 gtkclist.c
--- gtkclist.c 2000/05/26 07:47:45 1.7
+++ gtkclist.c 2001/04/24 00:12:31
@@ -885,7 +885,7 @@
switch (arg_id)
{
- guint i;
+ gint i;
case ARG_N_COLUMNS:
GTK_VALUE_UINT (*arg) = clist->columns;
@@ -1042,7 +1042,7 @@
if (titles)
{
- guint i;
+ gint i;
GTK_CLIST_SET_FLAG (clist, CLIST_SHOW_TITLES);
for (i = 0; i < columns; i++)
@@ -5515,7 +5515,7 @@
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 @@
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 @@
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 @@
list = context->targets;
while (list)
{
- if (atom == GPOINTER_TO_INT (list->data))
+ if (atom == GPOINTER_TO_UINT (list->data))
return TRUE;
list = list->next;
}
Index: ethereal/gtk/main.c
===================================================================
RCS file: /cvsroot/ethereal/gtk/main.c,v
retrieving revision 1.195
diff -u -u -r1.195 main.c
--- main.c 2001/04/19 23:06:23 1.195
+++ main.c 2001/04/24 00:12:41
@@ -1546,7 +1546,7 @@
{
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] == '-') {