Debian Codegraph @

debian/patches/ipc_param_type

raw
1 commit eeacbaac57b033682fb6249435b3db22c3445eb1
2 Author: Dejan Muhamedagic <[email protected]>
3 Date: Mon Jan 2 12:53:18 2017 +0100
4
5 Low: ipc: fix poll function parameter type
6
7 --- a/include/clplumbing/ipc.h
8 +++ b/include/clplumbing/ipc.h
9 @@ -700,7 +700,7 @@
10 /* Destroys an object constructed by ipc_set_auth or ipc_str_to_auth() */
11 extern void ipc_destroy_auth(IPC_Auth * auth);
12
13 -extern void ipc_set_pollfunc(int (*)(struct pollfd*, unsigned int, int));
14 +extern void ipc_set_pollfunc(int (*)(struct pollfd*, nfds_t, int));
15 extern void ipc_bufpool_dump_stats(void);
16
17 #ifdef IPC_TIME_DEBUG
18 --- a/lib/clplumbing/ipctest.c
19 +++ b/lib/clplumbing/ipctest.c
20 @@ -53,8 +53,8 @@
21 static int checksock(IPC_Channel* channel);
22 static void checkifblocked(IPC_Channel* channel);
23
24 -static int (*PollFunc)(struct pollfd * fds, unsigned int, int)
25 -= (int (*)(struct pollfd * fds, unsigned int, int)) poll;
26 +static int (*PollFunc)(struct pollfd * fds, nfds_t, int)
27 += (int (*)(struct pollfd * fds, nfds_t, int)) poll;
28 static gboolean checkmsg(IPC_Message* rmsg, const char * who, int rcount);
29
30 static const char *procname;
31 --- a/lib/clplumbing/ocf_ipc.c
32 +++ b/lib/clplumbing/ocf_ipc.c
33 @@ -47,12 +47,12 @@
34 struct IPC_WAIT_CONNECTION * socket_wait_conn_new(GHashTable* ch_attrs);
35 struct IPC_CHANNEL * socket_client_channel_new(GHashTable* ch_attrs);
36
37 -int (*ipc_pollfunc_ptr)(struct pollfd*, unsigned int, int)
38 -= (int (*)(struct pollfd*, unsigned int, int)) poll;
39 +int (*ipc_pollfunc_ptr)(struct pollfd*, nfds_t, int)
40 += (int (*)(struct pollfd*, nfds_t, int)) poll;
41
42 /* Set the IPC poll function to the given function */
43 void
44 -ipc_set_pollfunc(int (*pf)(struct pollfd*, unsigned int, int))
45 +ipc_set_pollfunc(int (*pf)(struct pollfd*, nfds_t, int))
46 {
47 ipc_pollfunc_ptr = pf;
48 }