file: reduce casts

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-11-07 20:06:15 +01:00
parent 677b02f0a3
commit 3606081184
No known key found for this signature in database
GPG Key ID: FC8DDA5A6A7456C4
1 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ get_entry(char *p, Uint16 len, const char *pathname, const char *basename, int f
}
static Uint16
file_read_dir(void *dest, Uint16 len)
file_read_dir(char *dest, Uint16 len)
{
static char pathname[4096];
char *p = dest;
@ -78,14 +78,14 @@ file_read_dir(void *dest, Uint16 len)
p += n;
len -= n;
}
return p - (char *)dest;
return p - dest;
}
Uint16
file_init(void *filename)
{
reset();
current_filename = (char *)filename;
current_filename = filename;
return 0;
}