From b1352458ab445ae0d7454374a50393e90d218c6a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 27 Jan 2019 16:45:56 -0600 Subject: [PATCH] apps/nshlib/nsh_netinit.c: Update for changes to signal notification structures. --- nshlib/nsh_netinit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nshlib/nsh_netinit.c b/nshlib/nsh_netinit.c index 1b3ece278..6b9678ca9 100644 --- a/nshlib/nsh_netinit.c +++ b/nshlib/nsh_netinit.c @@ -614,11 +614,11 @@ static int nsh_netinit_monitor(void) { /* Configure to receive a signal on changes in link status */ + memset(&ifr, 0, sizeof(struct ifreq)); strncpy(ifr.ifr_name, NET_DEVNAME, IFNAMSIZ); - ifr.ifr_mii_notify_pid = 0; /* PID=0 means this task */ - ifr.ifr_mii_notify_signo = CONFIG_NSH_NETINIT_SIGNO; - ifr.ifr_mii_notify_arg = NULL; + ifr.ifr_mii_notify_event.sigev_notify = SIGEV_SIGNAL; + ifr.ifr_mii_notify_event.sigev_signo = CONFIG_NSH_NETINIT_SIGNO; ret = ioctl(sd, SIOCMIINOTIFY, (unsigned long)&ifr); if (ret < 0)