[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH] Týndurspezifisches ausgeweitet, string.h
* string.h muss bei einigen Dateien eingebunden
werden (ist jedenfalls nützlich, um keine
implicit declarations zu bekommen)
* Da gehört noch mehr nach #ifdef TYNDUR - ohne
das gibt es unter nicht-týndur-Betriebs-
systemem zweimal "unused" bei sis900
---
e1000/device.c | 1 +
e1000/main.c | 1 +
pcnet/main.c | 1 +
pcnet/pcnet.c | 1 +
sis900/device.c | 1 +
sis900/main.c | 6 ++++--
6 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/e1000/device.c b/e1000/device.c
index 7026958..5979e03 100644
--- a/e1000/device.c
+++ b/e1000/device.c
@@ -29,6 +29,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stddef.h>
+#include <string.h>
#include "cdi.h"
#include "cdi/misc.h"
diff --git a/e1000/main.c b/e1000/main.c
index 39da9f6..a96e055 100644
--- a/e1000/main.c
+++ b/e1000/main.c
@@ -29,6 +29,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include "cdi/net.h"
#include "cdi/pci.h"
diff --git a/pcnet/main.c b/pcnet/main.c
index 9feac59..d3e3a83 100644
--- a/pcnet/main.c
+++ b/pcnet/main.c
@@ -35,6 +35,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "cdi/net.h"
#include "cdi/pci.h"
diff --git a/pcnet/pcnet.c b/pcnet/pcnet.c
index 8bccbf4..c934910 100644
--- a/pcnet/pcnet.c
+++ b/pcnet/pcnet.c
@@ -37,6 +37,7 @@
#include "cdi/io.h"
#include <stdio.h>
+#include <string.h>
static void pcnet_handle_interrupt(struct cdi_device* device);
static void pcnet_reset(struct pcnet_device *netcard);
diff --git a/sis900/device.c b/sis900/device.c
index fd433f1..ab0479a 100644
--- a/sis900/device.c
+++ b/sis900/device.c
@@ -29,6 +29,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stddef.h>
+#include <string.h>
#include "cdi.h"
#include "cdi/misc.h"
diff --git a/sis900/main.c b/sis900/main.c
index bee701e..4bf028f 100644
--- a/sis900/main.c
+++ b/sis900/main.c
@@ -29,6 +29,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include "cdi/net.h"
#include "cdi/pci.h"
@@ -43,9 +44,8 @@ struct module_options {
#ifdef TYNDUR
uint32_t string_to_ip(char* ip);
-#endif
-
static void process_parameter(struct module_options* options, char* param);
+#endif
struct sis900_driver {
struct cdi_net_driver net;
@@ -78,11 +78,13 @@ int init_sis900(int argc, char* argv[])
*/
static void sis900_driver_init(int argc, char* argv[])
{
+#ifdef TYNDUR
struct module_options options = {
// TODO Auf 0 setzen und am Ende prüfen und ggf. einfach was
// freies suchen
.ip = 0x0b01a8c0
};
+#endif
// Konstruktor der Vaterklasse
cdi_net_driver_init((struct cdi_net_driver*) &driver);
--
1.6.0.2