fs: make file system description const
There's no reason the table of pointers to file system functions needs to be mutable at runtime. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
parent
ddcc385586
commit
353336d632
5 changed files with 10 additions and 10 deletions
|
@ -494,7 +494,7 @@ int fs_statvfs(const char *path, struct fs_statvfs *stat);
|
|||
* @retval 0 Success
|
||||
* @retval -ERRNO errno code if error
|
||||
*/
|
||||
int fs_register(enum fs_type type, struct fs_file_system_t *fs);
|
||||
int fs_register(enum fs_type type, const struct fs_file_system_t *fs);
|
||||
|
||||
/**
|
||||
* @brief Unregister a file system
|
||||
|
@ -507,7 +507,7 @@ int fs_register(enum fs_type type, struct fs_file_system_t *fs);
|
|||
* @retval 0 Success
|
||||
* @retval -ERRNO errno code if error
|
||||
*/
|
||||
int fs_unregister(enum fs_type type, struct fs_file_system_t *fs);
|
||||
int fs_unregister(enum fs_type type, const struct fs_file_system_t *fs);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue