From 0a6525f0a37271ebb23cc86f71894bf84baf5c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 9 Jun 2015 14:38:54 +0200 Subject: [PATCH] added const --- fat16.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fat16.c b/fat16.c index f2a71e5..a7958ee 100644 --- a/fat16.c +++ b/fat16.c @@ -43,7 +43,7 @@ bool free_cluster_chain(const FAT16* fat, uint16_t clu); * Check if there is already a file of given RAW name * Raw name - name as found on disk, not "display name". */ -bool dir_find_file_raw(FAT16_FILE* dir, char* fname); +bool dir_find_file_raw(FAT16_FILE* dir, const char* fname); /** Write a value into FAT */ void write_fat(const FAT16* fat, const uint16_t cluster, const uint16_t value); @@ -274,7 +274,7 @@ bool free_cluster_chain(const FAT16* fat, uint16_t clu) * Check if there is already a file of given RAW name * Raw name - name as found on disk, not "display name". */ -bool dir_find_file_raw(FAT16_FILE* dir, char* fname) +bool dir_find_file_raw(FAT16_FILE* dir, const char* fname) { // rewind fat16_first(dir);