1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

fpga: Replace char * with const char * for filename

Ensure the string for filename is always constant, otherwise it can be
corrupted by the writing.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
Tien Fong Chee
2019-02-15 15:57:07 +08:00
committed by Michal Simek
parent 9184c92f46
commit 3003c445b3
2 changed files with 3 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ typedef struct { /* typedef fpga_desc */
unsigned int blocksize;
char *interface;
char *dev_part;
char *filename;
const char *filename;
int fstype;
} fpga_fs_info;