aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt2020-11-19 06:47:35 +0100
committerHeinrich Schuchardt2020-12-10 09:14:59 +0100
commit4a593dd0c5a1e1af40f47758f2aa1a4074a4ccdc (patch)
treecfe2fc889eea6c18014432d5f4f6b6f50696647b
parent1e51c8d64a945946af72099dd469a3320ce02e7c (diff)
fs: fat: use constant DELETED_FLAG
When deleting a directory entry 0xe5 is written to name[0]. We have a constant for this value and should use it consistently. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r--fs/fat/fat_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index 56ea28553b3..c403d7d5c6b 100644
--- a/fs/fat/fat_write.c
+++ b/fs/fat/fat_write.c
@@ -1464,7 +1464,7 @@ static int delete_dentry(fat_itr *itr)
* - find and mark the "new" first invalid entry as name[0]=0x00
*/
memset(dentptr, 0, sizeof(*dentptr));
- dentptr->name[0] = 0xe5;
+ dentptr->name[0] = DELETED_FLAG;
if (flush_dir(itr)) {
printf("error: writing directory entry\n");