summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-25 04:16:01 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-25 04:16:01 +0100
commit9a836f1dbf90f07c2fc4151166f7456879d675b0 (patch)
treebc7eec0850c1249c32465b41607a293c50eed44e /os
parentfcef19baed9cb5b040a3df0505e57710df20ee43 (diff)
Making the compiler a bitch by enabling warnings in full, fixing a few warnings, and making the board actually do slightly something.
Diffstat (limited to 'os')
-rw-r--r--os/src/close.c1
-rw-r--r--os/src/free.c1
-rw-r--r--os/src/lseek.c1
-rw-r--r--os/src/sprintf.c2
-rw-r--r--os/src/write.c1
5 files changed, 6 insertions, 0 deletions
diff --git a/os/src/close.c b/os/src/close.c
index 46ee8c5..ae0716f 100644
--- a/os/src/close.c
+++ b/os/src/close.c
@@ -1,4 +1,5 @@
#include <reent.h>
int _close_r(struct _reent * reent, int fd) {
+ return 0;
}
diff --git a/os/src/free.c b/os/src/free.c
index f2d1fe5..d80aff2 100644
--- a/os/src/free.c
+++ b/os/src/free.c
@@ -1,4 +1,5 @@
#include <reent.h>
+#include <malloc.h>
void free(void * ptr) {
_free_r(_impure_ptr, ptr);
diff --git a/os/src/lseek.c b/os/src/lseek.c
index 1b86dbb..f132693 100644
--- a/os/src/lseek.c
+++ b/os/src/lseek.c
@@ -1,4 +1,5 @@
#include <reent.h>
_off_t _lseek_r(struct _reent * reent, int fd, _off_t seek, int wheel) {
+ return 0;
}
diff --git a/os/src/sprintf.c b/os/src/sprintf.c
index 76ea9a2..30d27b3 100644
--- a/os/src/sprintf.c
+++ b/os/src/sprintf.c
@@ -1,4 +1,5 @@
#include <reent.h>
+#include <stdio.h>
#include <stdarg.h>
int sprintf(char * str, const char * fmt, ...) {
@@ -7,4 +8,5 @@ int sprintf(char * str, const char * fmt, ...) {
va_start(ap, fmt);
r = _vsprintf_r(_impure_ptr, str, fmt, ap);
va_end(ap);
+ return r;
}
diff --git a/os/src/write.c b/os/src/write.c
index a1bf474..a54195f 100644
--- a/os/src/write.c
+++ b/os/src/write.c
@@ -1,4 +1,5 @@
#include <reent.h>
_ssize_t _write_r(struct _reent * reent, int fd, const void * buf, size_t size) {
+ return 0;
}