summaryrefslogtreecommitdiff
path: root/sysutils/xlogmaster/files/patch-watchdog.cc
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2007-08-12 17:17:18 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2007-08-12 17:17:18 +0000
commit7d114c392d56d6f2c5a4619bd1db36d62b00f426 (patch)
treef592a1b35a39514ae5f0187907096e7ac97ba3d4 /sysutils/xlogmaster/files/patch-watchdog.cc
parentFix build on 64bit platforms (diff)
Fix build on 64bit platforms
Notes
Notes: svn path=/head/; revision=197535
Diffstat (limited to 'sysutils/xlogmaster/files/patch-watchdog.cc')
-rw-r--r--sysutils/xlogmaster/files/patch-watchdog.cc74
1 files changed, 74 insertions, 0 deletions
diff --git a/sysutils/xlogmaster/files/patch-watchdog.cc b/sysutils/xlogmaster/files/patch-watchdog.cc
new file mode 100644
index 000000000000..88c88cd0c29d
--- /dev/null
+++ b/sysutils/xlogmaster/files/patch-watchdog.cc
@@ -0,0 +1,74 @@
+--- src/watchdog.cc.orig 2007-08-12 19:09:53.000000000 +0200
++++ src/watchdog.cc 2007-08-12 19:12:50.000000000 +0200
+@@ -753,7 +753,7 @@
+ gint
+ watchdog_tail_interrupt(gpointer data)
+ {
+- gint i = (gint) data;
++ glong i = (glong) data;
+ if ( entry[i]->active == FALSE ) return TRUE;
+
+ if ( entry[i]->fd == -1 )
+@@ -893,7 +893,7 @@
+ gint
+ watchdog_run_interrupt(gpointer data)
+ {
+- int i = (int) data;
++ intptr_t i = (intptr_t) data;
+ if ( entry[i]->active == FALSE ) return TRUE;
+
+ if ( entry[i]->fd == -1 )
+@@ -1004,7 +1004,7 @@
+ gint
+ watchdog_run_restart_interrupt(gpointer data)
+ {
+- gint i = (gint) data;
++ glong i = (glong) data;
+
+ /* first remove this interrupt */
+ gtk_timeout_remove(entry[i]->tag);
+@@ -1036,7 +1036,7 @@
+ gint
+ watchdog_cat_interrupt(gpointer data)
+ {
+- int i = (int) data;
++ intptr_t i = (intptr_t) data;
+ if ( entry[i]->active == FALSE ) return TRUE;
+
+ /* we need to open it every time anew for CAT */
+@@ -1582,7 +1582,7 @@
+ gint
+ tail_interrupt(gpointer data)
+ {
+- gint i = (gint) data;
++ glong i = (glong) data;
+ if ( entry[i]->active == FALSE ) return TRUE;
+
+ /*
+@@ -1694,7 +1694,7 @@
+ gint
+ cat_interrupt(gpointer data)
+ {
+- gint i = (gint) data;
++ glong i = (glong) data;
+ if ( entry[i]->active == FALSE ) return TRUE;
+
+ entry[i]->fd = open(entry[i]->filename, O_RDONLY);
+@@ -1723,7 +1723,7 @@
+ gint
+ run_interrupt(gpointer data)
+ {
+- gint i = (gint) data;
++ glong i = (glong) data;
+ if ( entry[i]->active == FALSE ) return TRUE;
+
+ long got = read_from_filedescriptor(i);
+@@ -1785,7 +1785,7 @@
+ gint
+ run_restart_interrupt(gpointer data)
+ {
+- gint i = (gint) data;
++ glong i = (glong) data;
+
+ /* first remove this interrupt */
+ gtk_timeout_remove(entry[i]->tag);