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>
This commit is contained in:
parent
1e51c8d64a
commit
4a593dd0c5
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user