From 30e09ca6453f5d62f00ecfb3c593d44e0ef51877 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 8 Jul 2022 07:49:48 +0200 Subject: [PATCH] beeflock: Remove unused flag argument --- src/beeflock.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/beeflock.c b/src/beeflock.c index f663a0f..95bcb1a 100644 --- a/src/beeflock.c +++ b/src/beeflock.c @@ -66,7 +66,7 @@ void usage(void) #define BEEFLOCK_UNLOCK LOCK_UN #define BEEFLOCK_NOBLOCK LOCK_NB -int bee_flock_fd(int fd, int operation, int flags) +int bee_flock_fd(int fd, int operation) { int res; @@ -123,7 +123,7 @@ int bee_flock_close(int fd) return res; } -int bee_flock(char *filename, int operation, int flags) +int bee_flock(char *filename, int operation) { int res; int fd, fd2; @@ -134,7 +134,7 @@ int bee_flock(char *filename, int operation, int flags) return -1; while (1) { - res = bee_flock_fd(fd, operation, 0); + res = bee_flock_fd(fd, operation); if (res < 0) return -1; @@ -169,7 +169,7 @@ int bee_flock(char *filename, int operation, int flags) } -int bee_execute_command(char *command[], int flags) +int bee_execute_command(char *command[]) { pid_t fpid, wpid; int wstatus; @@ -265,12 +265,12 @@ int main(int argc, char *argv[]) BEE_EXIT(OSERR); } - fd = bee_flock(lockfilename, operation, 0); + fd = bee_flock(lockfilename, operation); if (fd < 0) { BEE_EXIT(SOFTWARE); } - res = bee_execute_command(command, 0); + res = bee_execute_command(command); bee_flock_close(fd); if (res < 0) { BEE_EXIT(SOFTWARE);