diff options
author | Dimitri Staessens <[email protected]> | 2023-02-09 17:38:29 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2023-02-13 21:10:10 +0100 |
commit | 3b5d1a8f495d5b6bda72f9962516d5a1e273481b (patch) | |
tree | f0a64a13260e930148188db70d3e9dcf04ddd5ee /src/lib/lockfile.c | |
parent | b0102d9dc3cb8b543e4e079ce68f1e06970b1cbb (diff) | |
download | ouroboros-3b5d1a8f495d5b6bda72f9962516d5a1e273481b.tar.gz ouroboros-3b5d1a8f495d5b6bda72f9962516d5a1e273481b.zip |
lib: Fix prototypes missing 'void'
Found by Clang version 15.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/lockfile.c')
-rw-r--r-- | src/lib/lockfile.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/lockfile.c b/src/lib/lockfile.c index 65970681..a340a98f 100644 --- a/src/lib/lockfile.c +++ b/src/lib/lockfile.c @@ -41,7 +41,8 @@ struct lockfile { pid_t * pid; }; -struct lockfile * lockfile_create() { +struct lockfile * lockfile_create(void) +{ int fd; mode_t mask; struct lockfile * lf = malloc(sizeof(*lf)); @@ -82,7 +83,8 @@ struct lockfile * lockfile_create() { return lf; } -struct lockfile * lockfile_open() { +struct lockfile * lockfile_open(void) +{ int fd; struct lockfile * lf = malloc(sizeof(*lf)); if (lf == NULL) |