[lvm-devel] main - make: fix compilation for some compiler

Zdenek Kabelac zkabelac at sourceware.org
Mon Sep 27 16:57:47 UTC 2021


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6c85ea50de2fbdf2c923b0739171661ecdd63832
Commit:        6c85ea50de2fbdf2c923b0739171661ecdd63832
Parent:        ef21ed78ae5a3dd0b30e4b247ec3774347cadb4d
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Fri Sep 24 17:18:30 2021 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Mon Sep 27 18:56:14 2021 +0200

make: fix compilation for some compiler

Reported-by: adamboardman of gemian
---
 tools/toollib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,
 	};
 




More information about the lvm-devel mailing list