diff options
author | 2025-03-10 20:37:28 +0000 | |
---|---|---|
committer | 2025-04-06 16:41:13 +0100 | |
commit | daa55cade14146f04814cf8a7ad2028becf4db66 (patch) | |
tree | 62933a231e8068f4498596a9064f59e1a4842723 /src/os.c | |
parent | 244fea664121acf12871ab5858a5fe95a2606b52 (diff) | |
download | sst-daa55cade14146f04814cf8a7ad2028becf4db66.tar.gz sst-daa55cade14146f04814cf8a7ad2028becf4db66.zip |
Use C23 void-argument-free prototypes
In the future we can also consider moving to {} instead of {0} for
initialisers, but my old Clang (16) doesn't support this, so it might be
wise to wait longer on that one so people don't need too bleeding-edge
of a compiler just to build this thing.
Diffstat (limited to 'src/os.c')
-rw-r--r-- | src/os.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |