head 1.2; access; symbols pkgsrc-2020Q1:1.1.0.50 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.72 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.68 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.66 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.64 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.62 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.60 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.58 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.56 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.54 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.52 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.48 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.46 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.44 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.42 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.40 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.38 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.36 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.34 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.32 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.30 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.28 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.26 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.24 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.22 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.20 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.18 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.16 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.14 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.12 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.10 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.8 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.6 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.4 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.2 pkgsrc-2011Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2020.05.15.12.18.03; author nia; state dead; branches; next 1.1; commitid p3lSejDZu12GJk8C; 1.1 date 2011.10.02.01.20.55; author dholland; state Exp; branches; next ; desc @@ 1.2 log @sysutils: Remove gnometoaster This has been "early alpha" since 2005 and is now unique to pkgsrc @ text @$NetBSD: patch-selectlist_c,v 1.1 2011/10/02 01:20:55 dholland Exp $ - fix foolish pointer manipulation that breaks on LP64 - silence other LP64 warnings; they appear to be ok --- selectlist.c~ 2001-12-16 11:38:04.000000000 +0000 +++ selectlist.c @@@@ -146,7 +146,7 @@@@ void selectlist_removeselection(char *s, foundpos=strstr(cmpcopy,entry); while (foundpos!=NULL) { - strcpy(foundpos,(char*)((int)foundpos+strlen(entry)-2)); + strcpy(foundpos,foundpos+strlen(entry)-2); foundpos=strstr(cmpcopy,entry); } ; @@@@ -164,8 +164,8 @@@@ void selectlist_select(GtkCList *clist,g selectlist_clipboard_activate(info); /* only mark row as selected if this has not already happened */ - if (g_list_find(info->selected_lines,(gpointer)row)==NULL) - info->selected_lines=g_list_prepend(info->selected_lines,(gpointer)row); + if (g_list_find(info->selected_lines,(gpointer)(intptr_t)row)==NULL) + info->selected_lines=g_list_prepend(info->selected_lines,(gpointer)(intptr_t)row); #ifdef DEBUG printf ("selectlist_select: selected row %i\n",row); printf ("selectlist.c: selectlist_select current selection:\n\"%s\"\n", @@@@ -187,7 +187,7 @@@@ void selectlist_unselect(GtkCList *clist row); #endif info->selected_lines=g_list_remove(info->selected_lines, - (gpointer)row); + (gpointer)(intptr_t)row); #ifdef DEBUG printf ("selectlist.c: selectlist_unselect current selection:\n\"%s\"\n", selectlist_getselection(info)); @@@@ -308,7 +308,7 @@@@ int selectlist_isselected(selectlist_inf GList *i=NULL; int result = 0; for (i=info->selected_lines;(i!=NULL)&&(!result);i=i->next) - if (row==(int)i->data) + if (row==(int)(intptr_t)i->data) result = 1; return result; }; @@@@ -375,7 +375,7 @@@@ void selectlist_modifiedselect_internal( gtk_clist_unselect_row(GTK_CLIST(widget), row, 0); break; case Shift: - x = ((info&&info->selected_lines)?(int)info->selected_lines->data:row); + x = ((info&&info->selected_lines)?(int)(intptr_t)info->selected_lines->data:row); upper_bound = MAX(x,row); lower_bound = MIN(x,row); for (x = lower_bound; x<=upper_bound; ++x) @@@@ -573,7 +573,7 @@@@ char *selectlist_getselection(selectlist /* create the selection string of all rows marked as selected */ for (i=info->selected_lines;i!=NULL;i=i->next) { - row=(int)i->data; /* get row */ + row=(int)(intptr_t)i->data; /* get row */ /* if significant_column is set to -1,a string addressed by the * hidden gpointer data field of the clist is taken as selection * information */ @@@@ -607,7 +607,7 @@@@ void selectlist_insert(selectlist_info * current!=NULL; current=current->next) { - if ((int)current->data>=row) + if ((int)(intptr_t)current->data>=row) current->data++; }; }; @@@@ -618,13 +618,13 @@@@ void selectlist_remove(selectlist_info * /* remove an item */ gtk_clist_remove(info->self,row); /* remove item from selection list */ - info->selected_lines=g_list_remove(info->selected_lines,(gpointer)row); + info->selected_lines=g_list_remove(info->selected_lines,(gpointer)(intptr_t)row); /* step through the list of selections */ for (current=info->selected_lines; current!=NULL; current=current->next) { - if ((int)current->data>row) + if ((int)(intptr_t)current->data>row) current->data--; }; }; @ 1.1 log @Fix trivial broken build. Then, fix extensive but straightforward LP64 issues reported by gcc. PKGREVISION -> 6. @ text @d1 1 a1 1 $NetBSD$ @