From d1807f168edd09ca26a5a0c6b570686b982808ad Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Sat, 11 Mar 2023 13:39:24 -0500 Subject: nvpair: Constify string functions After addressing coverity complaints involving `nvpair_name()`, the compiler started complaining about dropping const. This lead to a rabbit hole where not only `nvpair_name()` needed to be constified, but also `nvpair_value_string()`, `fnvpair_value_string()` and a few other static functions, plus variable pointers throughout the code. The result became a fairly big change, so it has been split out into its own patch. Reviewed-by: Tino Reichardt Reviewed-by: Brian Behlendorf Signed-off-by: Richard Yao Closes #14612 --- lib/libnvpair/libnvpair.abi | 74 +++++++++++++++++++++++++-------------------- 1 file changed, 41 insertions(+), 33 deletions(-) (limited to 'lib/libnvpair/libnvpair.abi') diff --git a/lib/libnvpair/libnvpair.abi b/lib/libnvpair/libnvpair.abi index 5900a6551..ef92f3e9b 100644 --- a/lib/libnvpair/libnvpair.abi +++ b/lib/libnvpair/libnvpair.abi @@ -243,6 +243,9 @@ + + + @@ -321,6 +324,9 @@ + + + @@ -698,7 +704,7 @@ - + @@ -802,7 +808,7 @@ - + @@ -858,11 +864,11 @@ - - + + @@ -871,8 +877,8 @@ - - + + @@ -898,8 +904,8 @@ - - + + @@ -966,7 +972,7 @@ - + @@ -1027,8 +1033,8 @@ - - + + @@ -1098,7 +1104,7 @@ - + @@ -1280,7 +1286,7 @@ - + @@ -1358,7 +1364,7 @@ - + @@ -1393,16 +1399,16 @@ - + - + - - + + @@ -1414,20 +1420,20 @@ - + - + - + - + @@ -1642,20 +1648,20 @@ - + - + - + - + @@ -1930,8 +1936,8 @@ - - + + @@ -2327,9 +2333,9 @@ - + - + @@ -2466,7 +2472,9 @@ + + @@ -2925,9 +2933,9 @@ - + - + @@ -3043,7 +3051,7 @@ - + -- cgit v1.2.3