pkgsrc/x11/xview-lib/patches/patch-ce
abs c9c8f97e88 - Add PKG_DESTDIR_SUPPORT
- Depend on the latest version of xview-config
- Mark as LICENSE sun-openlook-license
- Bump pkgrevision
2009-12-10 20:35:56 +00:00

85 lines
2.7 KiB
Text

$NetBSD: patch-ce,v 1.2 2009/12/10 20:35:57 abs Exp $
--- lib/libxview/panel/p_list.c.orig 1993-06-29 05:16:48.000000000 +0000
+++ lib/libxview/panel/p_list.c
@@ -1239,7 +1239,7 @@ panel_list_get_attr(panel_list_public, s
return ((Xv_opaque) dp->choose_one);
case PANEL_ITEM_NTH_WINDOW:
- if (*(int *) valist == 0)
+ if (va_arg(valist, int *) == 0)
return (Xv_opaque) dp->list_sb;
else
return (Xv_opaque) NULL;
@@ -1266,7 +1266,7 @@ panel_list_get_attr(panel_list_public, s
return (Xv_opaque) dp->list_sb;
case PANEL_LIST_SELECTED:
- row = *(int *) valist;
+ row = *va_arg(valist, int *);
node = find_or_create_nth_row(dp, row, FALSE);
return (node ? (Xv_opaque) node->f.selected : (Xv_opaque) XV_ERROR);
@@ -1278,7 +1278,7 @@ panel_list_get_attr(panel_list_public, s
return -1; /* no rows selected */
case PANEL_LIST_NEXT_SELECTED:
- row = *(int *) valist;
+ row = va_arg(valist, int);
node = find_or_create_nth_row(dp, row, FALSE);
if (!node)
return -1; /* specified row doesn't exist */
@@ -1289,7 +1289,7 @@ panel_list_get_attr(panel_list_public, s
return -1; /* no subsequent row selected */
case PANEL_LIST_CLIENT_DATA:
- row = *(int *) valist;
+ row = va_arg(valist, int);
node = find_or_create_nth_row(dp, row, FALSE);
return (node ? (Xv_opaque) node->client_data : (Xv_opaque) XV_ERROR);
@@ -1297,7 +1297,7 @@ panel_list_get_attr(panel_list_public, s
#ifdef OW_I18N
case PANEL_LIST_STRING_WCS:
#endif
- row = *(int *) valist;
+ row = va_arg(valist, int);
node = find_or_create_nth_row(dp, row, FALSE);
#ifdef OW_I18N
if (node != NULL)
@@ -1312,7 +1312,7 @@ panel_list_get_attr(panel_list_public, s
#endif /* OW_I18N */
case PANEL_LIST_GLYPH:
- row = *(int *) valist;
+ row = va_arg(valist, int);
node = find_or_create_nth_row(dp, row, FALSE);
return (node ? (Xv_opaque) node->glyph : (Xv_opaque) XV_ERROR);
@@ -1328,7 +1328,7 @@ panel_list_get_attr(panel_list_public, s
#endif /* OW_I18N */
case PANEL_LIST_FONT:
- row = *(int *) valist;
+ row = va_arg(valist, int);
node = find_or_create_nth_row(dp, row, FALSE);
return (node ? (Xv_opaque) node->font : (Xv_opaque) XV_ERROR);
@@ -1352,7 +1352,7 @@ panel_list_get_attr(panel_list_public, s
case PANEL_LIST_INACTIVE:
- row = *(int *) valist;
+ row = va_arg(valist, int);
node = find_or_create_nth_row(dp, row, FALSE);
return (node ? (Xv_opaque) node->f.row_inactive : (Xv_opaque) XV_ERROR);
@@ -1407,7 +1407,7 @@ panel_list_get_attr(panel_list_public, s
}
case PANEL_LIST_EXTENSION_DATA:
- row = *(int *) valist;
+ row = va_arg(valist, int);
node = find_or_create_nth_row(dp, row, FALSE);
return (node ? (Xv_opaque) node->exten_data : (Xv_opaque) XV_ERROR);