From 50ecd3fccb4058c805bf74a59ffc1c4f6d496def Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Mon, 29 Nov 2021 21:55:45 +0100
Subject: [PATCH] Adjusted to recent cc65 compiler improvements.
---
cpu/6502/lib/config.c | 16 +---------------
cpu/6502/lib/config.h | 2 +-
2 files changed, 2 insertions(+), 16 deletions(-)
diff --git a/cpu/6502/lib/config.c b/cpu/6502/lib/config.c
index 2da05eb04..a84376313 100644
--- a/cpu/6502/lib/config.c
+++ b/cpu/6502/lib/config.c
@@ -42,21 +42,7 @@
#include "lib/config.h"
-struct {
- uip_ipaddr_t hostaddr;
- uip_ipaddr_t netmask;
- uip_ipaddr_t draddr;
- uip_ipaddr_t resolvaddr;
- union {
- struct {
- uint16_t param;
-#ifndef STATIC_DRIVER
- char name[12+1];
-#endif /* !STATIC_DRIVER */
- } ethernet;
- uint8_t slip[5];
- };
-} config;
+struct config_t config;
/*-----------------------------------------------------------------------------------*/
#if LOG_CONF_ENABLED
diff --git a/cpu/6502/lib/config.h b/cpu/6502/lib/config.h
index 85d944f3e..dbc302b19 100644
--- a/cpu/6502/lib/config.h
+++ b/cpu/6502/lib/config.h
@@ -35,7 +35,7 @@
#ifndef CONFIG_H_
#define CONFIG_H_
-extern struct {
+extern struct config_t {
uip_ipaddr_t hostaddr;
uip_ipaddr_t netmask;
uip_ipaddr_t draddr;