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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Christian Göttsche <cgzones@xxxxxxxxxxxxxx>

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

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

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 */
-- 
2.45.2





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux