Welcome to little lamb

Code » limb » commit 6b49c4a

djbunix: Fix open_tmp macro

author Olivier Brunel
2023-12-16 20:52:39 UTC
committer Olivier Brunel
2024-01-01 19:10:12 UTC
parent ff3f351a20dcb3ef4ddec41a2468728b8e9c608f

djbunix: Fix open_tmp macro

src/liblimb/include/limb/djbunix.h +1 -1

diff --git a/src/liblimb/include/limb/djbunix.h b/src/liblimb/include/limb/djbunix.h
index 21bc86d..f7a9491 100644
--- a/src/liblimb/include/limb/djbunix.h
+++ b/src/liblimb/include/limb/djbunix.h
@@ -32,7 +32,7 @@ extern int openc_createat(int fd, const char *file);
 extern int open_exclat(int fd, const char *file);
 extern int openc_exclat(int fd, const char *file);
 
-#define open_tmp(tmp)           mkfiletemp(tmp, (create_func) (void (*)(void)) open_excl, 0, NULL)
+#define open_tmp(tmp)           mkfiletemp(tmp, (create_func *) (void (*)(void)) open_excl, 0, NULL)
 #define open_tmpat(fd,tmp)      mkfiletempat(fd, tmp, (createat_fn) (void (*)(void)) open_exclat, 0, NULL)
 
 extern int open_parsed_name(const char *name, open_fn open);