summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index c3bfb63..ed5259a 100644
--- a/include/net.h
+++ b/include/net.h
@@ -168,7 +168,8 @@ void eth_halt_state_only(void); /* Set passive state */
#ifndef CONFIG_DM_ETH
struct eth_device {
- char name[16];
+#define ETH_NAME_LEN 16
+ char name[ETH_NAME_LEN];
unsigned char enetaddr[ARP_HLEN];
phys_addr_t iobase;
int state;