diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-05 21:48:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-09 17:15:20 +0100 |
commit | 83994913b6603c3a0dbb5ece4b3b5b47457ed99e (patch) | |
tree | a2684dcdfbcc0172140a4c9828c734497ff4695e /cpukit/libfs/src/imfs/imfs_stat_file.c | |
parent | imfs: Use _IMFS_get_time() (diff) | |
download | rtems-83994913b6603c3a0dbb5ece4b3b5b47457ed99e.tar.bz2 |
imfs: Constify imfs_memfile_bytes_per_block
The CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK value is validated by
<rtems/confdefs/libio.h>. Changing this value during runtime could lead
to memory corruption.
Update #3894.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_stat_file.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_stat_file.c b/cpukit/libfs/src/imfs/imfs_stat_file.c index 0135fe43e3..ef1d0095a6 100644 --- a/cpukit/libfs/src/imfs/imfs_stat_file.c +++ b/cpukit/libfs/src/imfs/imfs_stat_file.c @@ -19,8 +19,6 @@ #include <rtems/imfs.h> -int imfs_memfile_bytes_per_block; - int IMFS_stat_file( const rtems_filesystem_location_info_t *loc, struct stat *buf |