uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 36060811840caa3b961175864ec786d31a6f15ca
parent 677b02f0a3ee3c9e9c1454dfd9b0ab41bf2a2f7b
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Sun,  7 Nov 2021 20:06:15 +0100

file: reduce casts

Diffstat:
Msrc/devices/file.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/devices/file.c b/src/devices/file.c @@ -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; }