[Debian-ha-commits] [cluster-glue] 07/12: Fix conflicting ipc declarations (Closes: #688514)
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Thu Aug 24 19:30:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
vvidic-guest pushed a commit to branch master
in repository cluster-glue.
commit 098589865d97c229b79ac619b4dca2308e26fedd
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date: Wed Aug 16 22:15:48 2017 +0200
Fix conflicting ipc declarations (Closes: #688514)
---
debian/patches/ipc_param_type | 48 +++++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 49 insertions(+)
diff --git a/debian/patches/ipc_param_type b/debian/patches/ipc_param_type
new file mode 100644
index 0000000..8030599
--- /dev/null
+++ b/debian/patches/ipc_param_type
@@ -0,0 +1,48 @@
+commit eeacbaac57b033682fb6249435b3db22c3445eb1
+Author: Dejan Muhamedagic <dejan at hello-penguin.com>
+Date: Mon Jan 2 12:53:18 2017 +0100
+
+ Low: ipc: fix poll function parameter type
+
+--- a/include/clplumbing/ipc.h
++++ b/include/clplumbing/ipc.h
+@@ -700,7 +700,7 @@
+ /* Destroys an object constructed by ipc_set_auth or ipc_str_to_auth() */
+ extern void ipc_destroy_auth(IPC_Auth * auth);
+
+-extern void ipc_set_pollfunc(int (*)(struct pollfd*, unsigned int, int));
++extern void ipc_set_pollfunc(int (*)(struct pollfd*, nfds_t, int));
+ extern void ipc_bufpool_dump_stats(void);
+
+ #ifdef IPC_TIME_DEBUG
+--- a/lib/clplumbing/ipctest.c
++++ b/lib/clplumbing/ipctest.c
+@@ -53,8 +53,8 @@
+ static int checksock(IPC_Channel* channel);
+ static void checkifblocked(IPC_Channel* channel);
+
+-static int (*PollFunc)(struct pollfd * fds, unsigned int, int)
+-= (int (*)(struct pollfd * fds, unsigned int, int)) poll;
++static int (*PollFunc)(struct pollfd * fds, nfds_t, int)
++= (int (*)(struct pollfd * fds, nfds_t, int)) poll;
+ static gboolean checkmsg(IPC_Message* rmsg, const char * who, int rcount);
+
+ static const char *procname;
+--- a/lib/clplumbing/ocf_ipc.c
++++ b/lib/clplumbing/ocf_ipc.c
+@@ -47,12 +47,12 @@
+ struct IPC_WAIT_CONNECTION * socket_wait_conn_new(GHashTable* ch_attrs);
+ struct IPC_CHANNEL * socket_client_channel_new(GHashTable* ch_attrs);
+
+-int (*ipc_pollfunc_ptr)(struct pollfd*, unsigned int, int)
+-= (int (*)(struct pollfd*, unsigned int, int)) poll;
++int (*ipc_pollfunc_ptr)(struct pollfd*, nfds_t, int)
++= (int (*)(struct pollfd*, nfds_t, int)) poll;
+
+ /* Set the IPC poll function to the given function */
+ void
+-ipc_set_pollfunc(int (*pf)(struct pollfd*, unsigned int, int))
++ipc_set_pollfunc(int (*pf)(struct pollfd*, nfds_t, int))
+ {
+ ipc_pollfunc_ptr = pf;
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 1f3d889..10454af 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@
kfbsd.diff
hurd.diff
x32-cl_times
+ipc_param_type
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/cluster-glue.git
More information about the Debian-HA-Commits
mailing list