changeset 5510:b9a2c4481c2e draft

setproctitle compat requires envp, not environ The two could be different! envp is NOT C or POSIX standard, but does appear to be a UNIX standard.
author Roy Marples <roy@marples.name>
date Sat, 10 Oct 2020 14:44:00 +0100
parents 5cf306bf4058
children 618c0ef1bae8
files src/dhcpcd.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcpcd.c	Sat Oct 10 13:32:23 2020 +0300
+++ b/src/dhcpcd.c	Sat Oct 10 14:44:00 2020 +0100
@@ -1767,7 +1767,7 @@
 }
 
 int
-main(int argc, char **argv)
+main(int argc, char **argv, char **envp)
 {
 	struct dhcpcd_ctx ctx;
 	struct ifaddrs *ifaddrs = NULL;
@@ -1788,7 +1788,7 @@
 #endif
 
 #ifdef SETPROCTITLE_H
-	setproctitle_init(argc, argv, environ);
+	setproctitle_init(argc, argv, envp);
 #endif
 
 	/* Test for --help and --version */