aboutsummaryrefslogtreecommitdiff
path: root/src/os.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os.c')
-rw-r--r--src/os.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os.c b/src/os.c
index e6d32e8..3fd5d66 100644
--- a/src/os.c
+++ b/src/os.c
@@ -1,5 +1,5 @@
/*
- * Copyright © 2024 Michael Smith <mikesmiffy128@gmail.com>
+ * Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -35,7 +35,7 @@
#ifdef _WIN32
-int os_lasterror(void) { return GetLastError(); }
+int os_lasterror() { return GetLastError(); }
// N.B. file handle values are 32-bit, even in 64-bit builds. I'm not crazy!
@@ -108,7 +108,7 @@ bool os_mprot(void *addr, int len, int mode) {
#else
-int os_lasterror(void) { return errno; }
+int os_lasterror() { return errno; }
int os_open_read(const char *path) {
return open(path, O_RDONLY | O_CLOEXEC);