summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/drivers/net/phy_notify.c3
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;