Skip to contentSkip to conversation

main - make: fix compilation for some compiler

PATCH Zdenek Kabelac 1 participant 1 message Sep 27, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6c85ea50de2fbdf2c923b0739171661ecdd63832
Commit:        6c85ea50de2fbdf2c923b0739171661ecdd63832
Parent:        ef21ed78ae5a3dd0b30e4b247ec3774347cadb4d
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Sep 24 17:18:30 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
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(-)
tools/toollib.c +1 -1
index 606d35981..7e35f6f22 100644
@@ -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,
 	};