diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-17 10:22:30 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-17 10:22:30 -0600 |
commit | 1701ada77cd15d14bb97a555914aa974c7a5bc43 (patch) | |
tree | 8831bfbf9e4d6881cbe9ea5a8a015ed7525ef90e /nuttx | |
parent | 01d96cdec78e08ff9b8883c6dadc28a428ce9858 (diff) | |
download | px4-nuttx-1701ada77cd15d14bb97a555914aa974c7a5bc43.tar.gz px4-nuttx-1701ada77cd15d14bb97a555914aa974c7a5bc43.tar.bz2 px4-nuttx-1701ada77cd15d14bb97a555914aa974c7a5bc43.zip |
Network: Fix compilation problem when mutliple networks enabled
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/drivers/net/phy_notify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/drivers/net/phy_notify.c b/nuttx/drivers/net/phy_notify.c index c828a644c..f3af238a0 100644 --- a/nuttx/drivers/net/phy_notify.c +++ b/nuttx/drivers/net/phy_notify.c @@ -48,6 +48,7 @@ # define CONFIG_DEBUG_NET 1 #endif +#include <stdio.h> #include <unistd.h> #include <string.h> #include <semaphore.h> @@ -198,7 +199,7 @@ static FAR struct phy_notify_s *phy_find_unassigned(void) client->signo = 0; client->index = i; #ifdef CONFIG_NETDEV_MULTINIC - client->intf = '\0'; + client->intf[0] = '\0'; #endif client->pid = -1; client->arg = NULL; |