[rtems-libbsd commit] dhcpcd: Pass config structure.

Christian Mauderer christianm at rtems.org
Thu Feb 6 12:15:24 UTC 2020


Module:    rtems-libbsd
Branch:    5-freebsd-12
Commit:    bbdb76e3138aaac4866dbcef04d23172764f7ff3
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=bbdb76e3138aaac4866dbcef04d23172764f7ff3

Author:    Christian Mauderer <christian.mauderer at embedded-brains.de>
Date:      Mon Feb  3 13:32:31 2020 +0100

dhcpcd: Pass config structure.

---

 dhcpcd/dhcpcd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dhcpcd/dhcpcd.c b/dhcpcd/dhcpcd.c
index fd6356d..b7839d4 100644
--- a/dhcpcd/dhcpcd.c
+++ b/dhcpcd/dhcpcd.c
@@ -1181,7 +1181,8 @@ rtems_dhcpcd_start(const rtems_dhcpcd_config *config)
 		if (sc == RTEMS_SUCCESSFUL) {
 			dhcpcd_initialized = true;
 
-			sc = rtems_task_start(id, dhcpcd_task, 0);
+			sc = rtems_task_start(id, dhcpcd_task,
+			    (rtems_task_argument) config);
 			assert(sc == RTEMS_SUCCESSFUL);
 		}
 	} else {



More information about the vc mailing list