[rtems commit] libio: Constify some functions

Sebastian Huber sebh at rtems.org
Mon Mar 9 17:59:54 UTC 2020


Module:    rtems
Branch:    master
Commit:    624d691bdc9a97a54a24363560ced60f6067ef19
Changeset: http://git.rtems.org/rtems/commit/?id=624d691bdc9a97a54a24363560ced60f6067ef19

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar  3 19:23:27 2020 +0100

libio: Constify some functions

---

 cpukit/include/rtems/libio_.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cpukit/include/rtems/libio_.h b/cpukit/include/rtems/libio_.h
index 2473bb5..916ba85 100644
--- a/cpukit/include/rtems/libio_.h
+++ b/cpukit/include/rtems/libio_.h
@@ -732,14 +732,14 @@ static inline bool rtems_filesystem_location_is_instance_root(
 }
 
 static inline const char *rtems_filesystem_eval_path_get_path(
-  rtems_filesystem_eval_path_context_t *ctx
+  const rtems_filesystem_eval_path_context_t *ctx
 )
 {
   return ctx->path;
 }
 
 static inline size_t rtems_filesystem_eval_path_get_pathlen(
-  rtems_filesystem_eval_path_context_t *ctx
+  const rtems_filesystem_eval_path_context_t *ctx
 )
 {
   return ctx->pathlen;
@@ -763,14 +763,14 @@ static inline void rtems_filesystem_eval_path_clear_path(
 }
 
 static inline const char *rtems_filesystem_eval_path_get_token(
-  rtems_filesystem_eval_path_context_t *ctx
+  const rtems_filesystem_eval_path_context_t *ctx
 )
 {
   return ctx->token;
 }
 
 static inline size_t rtems_filesystem_eval_path_get_tokenlen(
-  rtems_filesystem_eval_path_context_t *ctx
+  const rtems_filesystem_eval_path_context_t *ctx
 )
 {
   return ctx->tokenlen;



More information about the vc mailing list