openbsd-ports/math/geg/patches/patch-src_formulas_c
jasper 7af2008ba1 - add a missing header
- regen PLIST
2008-11-19 23:37:17 +00:00

22 lines
650 B
Plaintext

$OpenBSD: patch-src_formulas_c,v 1.2 2008/11/19 23:37:17 jasper Exp $
--- src/formulas.c.orig Thu Feb 4 13:21:00 1999
+++ src/formulas.c Thu Nov 20 00:35:46 2008
@@ -7,6 +7,8 @@
#include <config.h>
#endif /* HAVE_CONFIG_H */
+#include <string.h>
+
#include "formulas.h"
#include "log.h"
#include "prefs.h"
@@ -200,7 +202,7 @@ really_remove_event(gpointer data, gpointer user_data)
gint i = 0;
gchar *text;
- gtk_clist_get_text((GtkCList *)user_data, (gint)data, 0, &text);
+ gtk_clist_get_text((GtkCList *)user_data, GPOINTER_TO_INT(data), 0, &text);
while(strcmp(text, formulas[i++]));
g_free(formulas[--i]);
nformulas--;