shithub: lwext4

Download patch

ref: d85decabcf3923cdb2f08a5c9f8522ec5e0c394a
parent: b23a71e91801e79fc1dbd9eb6784c8cc071f647c
author: gkostka <kostka.grzegorz@gmail.com>
date: Sat Jun 27 20:56:03 EDT 2015

Add const keyword to mountpoint parameter

--- a/lwext4/ext4.c
+++ b/lwext4/ext4.c
@@ -283,7 +283,7 @@
 
 /****************************************************************************/
 
-int ext4_mount(const char *dev_name, char *mount_point)
+int ext4_mount(const char *dev_name, const char *mount_point)
 {
     ext4_assert(mount_point && dev_name);
     int r = EOK;
@@ -371,7 +371,7 @@
     return r;
 }
 
-int ext4_umount(char *mount_point)
+int ext4_umount(const char *mount_point)
 {
     int i;
     int r = EOK;
--- a/lwext4/ext4.h
+++ b/lwext4/ext4.h
@@ -173,12 +173,12 @@
  *          -   /my_second_partition/
  *
  * @return standard error code */
-int ext4_mount(const char *dev_name, char *mount_point);
+int ext4_mount(const char *dev_name, const char *mount_point);
 
 /**@brief   Umount operation.
  * @param   mount_point mount name
  * @return  standard error code */
-int ext4_umount(char *mount_point);
+int ext4_umount(const char *mount_point);
 
 /**@brief   Some of the filesystem stats.*/
 struct ext4_mount_stats {