summaryrefslogtreecommitdiff
path: root/src/lib/lockfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/lockfile.c')
-rw-r--r--src/lib/lockfile.c6
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)