summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/glib-ectomy.c2
-rw-r--r--common/glib-ectomy.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/common/glib-ectomy.c b/common/glib-ectomy.c
index d5d4a611..dff48ef6 100644
--- a/common/glib-ectomy.c
+++ b/common/glib-ectomy.c
@@ -344,7 +344,7 @@ void g_main_loop_unref(GMainLoop *loop)
free(loop->context);
}
-guint g_timeout_add(guint interval, GSourceFunc function, void *data)
+guint g_timeout_add(guint interval, GSourceFunc function, gpointer data)
{
struct timeval tv;
guint secs;
diff --git a/common/glib-ectomy.h b/common/glib-ectomy.h
index 18525f78..333687b1 100644
--- a/common/glib-ectomy.h
+++ b/common/glib-ectomy.h
@@ -45,7 +45,7 @@ struct timeout {
guint id;
guint interval;
time_val_t expiration;
- void *data;
+ gpointer data;
GSourceFunc function;
};
@@ -110,7 +110,7 @@ GMainLoop *g_main_loop_new(GMainContext *context, gboolean is_running);
void g_main_loop_run(GMainLoop *loop);
void g_main_loop_quit(GMainLoop *loop);
void g_main_loop_unref(GMainLoop *loop);
-guint g_timeout_add(guint interval, GSourceFunc function, void *data);
+guint g_timeout_add(guint interval, GSourceFunc function, gpointer data);
gint g_timeout_remove(const guint id);
#define g_main_new(is_running) g_main_loop_new(NULL, is_running);