Skip to content

genl: Make iovec parameter const

Ossama Othman ell 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2genl: Make iovec parameter constell/genl.c ell/genl.h+3 -23 replies
2/2unit: Added test for l_genl_msg_append_attrv()unit/test-genl-msg.c+47 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] genl: Make iovec parameter const

This set of patches makes the iovec parameter of l_genl_msg_append_attrv() function const since it isn't modified by that function. This allows a pointer to a const struct iovec to be passed as an argument without casting away the const. Of course, a pointer to a non-const iovec may still be passed without a cast as well. A new unit test for l_genl_msg_append_attrv() is also added.

Ossama Othman (2):
genl: Make iovec parameter const
unit: Added test for l_genl_msg_append_attrv()

 ell/genl.c           |  3 ++-
 ell/genl.h           |  2 +-
 unit/test-genl-msg.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 2 deletions(-)
Signature · 1 line
2.11.0