looks good for merge regards -steve
On Thu, 2009-04-02 at 20:06 +0200, Jim Meyering wrote: > Here's a non-invasive change to the public headers. > While technically an API modification, the only induced change is that > callers of these two functions no longer need to cast-away "const" > when their own "iov" buffers happen to be "const". > > From b351909c6be44eb013f666d041b234e05c49c9ae Mon Sep 17 00:00:00 2001 > From: Jim Meyering <[email protected]> > Date: Thu, 2 Apr 2009 19:51:42 +0200 > Subject: [PATCH] coroipcc.h: add "const" to "iov" parameters > > * include/corosync/coroipcc.h (coroipcc_msg_send_reply_receive_in_buf): > Make "iov" const. > * lib/coroipcc.c (coroipcc_msg_send): Make iov const. > (coroipcc_msg_send_reply_receive): Likewise. > (coroipcc_msg_send_reply_receive_in_buf): Likewise. > --- > include/corosync/coroipcc.h | 5 ++--- > lib/coroipcc.c | 6 +++--- > 2 files changed, 5 insertions(+), 6 deletions(-) > > diff --git a/include/corosync/coroipcc.h b/include/corosync/coroipcc.h > index ee16bac..1bf602a 100644 > --- a/include/corosync/coroipcc.h > +++ b/include/corosync/coroipcc.h > @@ -94,7 +94,7 @@ coroipcc_dispatch_flow_control_get ( > cs_error_t > coroipcc_msg_send_reply_receive ( > void *ipc_context, > - struct iovec *iov, > + const struct iovec *iov, > int iov_len, > void *res_msg, > int res_len); > @@ -102,7 +102,7 @@ coroipcc_msg_send_reply_receive ( > cs_error_t > coroipcc_msg_send_reply_receive_in_buf ( > void *ipc_context, > - struct iovec *iov, > + const struct iovec *iov, > int iov_len, > void **res_msg); > > @@ -131,4 +131,3 @@ saHandleInstancePut ( > #define offset_of(type,member) (int)(&(((type *)0)->member)) > > #endif /* COROIPC_H_DEFINED */ > - > diff --git a/lib/coroipcc.c b/lib/coroipcc.c > index 7c058fd..8710c27 100644 > --- a/lib/coroipcc.c > +++ b/lib/coroipcc.c > @@ -574,7 +574,7 @@ retry_semop: > static cs_error_t > coroipcc_msg_send ( > void *ipc_context, > - struct iovec *iov, > + const struct iovec *iov, > int iov_len) > { > struct ipc_segment *ipc_segment = (struct ipc_segment *)ipc_context; > @@ -683,7 +683,7 @@ retry_semop: > cs_error_t > coroipcc_msg_send_reply_receive ( > void *ipc_context, > - struct iovec *iov, > + const struct iovec *iov, > int iov_len, > void *res_msg, > int res_len) > @@ -706,7 +706,7 @@ coroipcc_msg_send_reply_receive ( > cs_error_t > coroipcc_msg_send_reply_receive_in_buf ( > void *ipc_context, > - struct iovec *iov, > + const struct iovec *iov, > int iov_len, > void **res_msg) > { > -- > 1.6.2.rc1.285.gc5f54 > _______________________________________________ > Openais mailing list > [email protected] > https://lists.linux-foundation.org/mailman/listinfo/openais _______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
