summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-09-24 17:18:30 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-09-27 18:56:14 +0200
commit6c85ea50de2fbdf2c923b0739171661ecdd63832 (patch)
tree1948a33ad79b419dd782b9138d4efa0e73eb3014
parentef21ed78ae5a3dd0b30e4b247ec3774347cadb4d (diff)
downloadlvm2-6c85ea50de2fbdf2c923b0739171661ecdd63832.tar.gz
make: fix compilation for some compiler
Reported-by: adamboardman of gemian
-rw-r--r--tools/toollib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/toollib.c b/tools/toollib.c
index 606d35981..7e35f6f22 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -49,7 +49,7 @@ int become_daemon(struct cmd_context *cmd, int skip_lvm)
int null_fd;
pid_t pid;
struct sigaction act = {
- {_sigchld_handler},
+ .sa_handler = _sigchld_handler,
.sa_flags = SA_NOCLDSTOP,
};