diff mbox series

[09/47] libsemanage: drop const from function declaration

Message ID 20241111141706.38039-9-cgoettsche@seltendoof.de (mailing list archive)
State New
Delegated to: Petr Lautrbach
Headers show
Series [01/47] libsemanage: white space cleanup | expand

Commit Message

Christian Göttsche Nov. 11, 2024, 2:16 p.m. UTC
From: Christian Göttsche <cgzones@googlemail.com>

Using the const qualifier in a declaration for a passed by value
parameter has no effect.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 libsemanage/src/parse_utils.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libsemanage/src/parse_utils.h b/libsemanage/src/parse_utils.h
index 52408373..d52ab271 100644
--- a/libsemanage/src/parse_utils.h
+++ b/libsemanage/src/parse_utils.h
@@ -48,7 +48,7 @@  extern int parse_assert_space(semanage_handle_t * handle, parse_info_t * info);
 /* Throw an error if the specified character
  * does not follow, otherwise eat that character */
 extern int parse_assert_ch(semanage_handle_t * handle,
-			   parse_info_t * info, const char ch);
+			   parse_info_t * info, char ch);
 
 /* Throw an error if the specified string
  * does not follow is not found, otherwise
@@ -58,7 +58,7 @@  extern int parse_assert_str(semanage_handle_t * handle,
 
 /* Eat the optional character, if found,
  * or return STATUS_NODATA */
-extern int parse_optional_ch(parse_info_t * info, const char ch);
+extern int parse_optional_ch(parse_info_t * info, char ch);
 
 /* Eat the optional string, if found,
  * or return STATUS_NODATA */