summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-27 15:03:14 +0200
committerMiguel <m.i@gmx.at>2018-09-27 15:03:14 +0200
commit3afdccc7087797a106263c481bfc406049124fa6 (patch)
tree9d687c246fa818f8214fe64c673339ed77e9a34d
parent8e005d0f13767db538e3d939188d73370db9042d (diff)
litttle fix in netstack
-rw-r--r--Makefile.common2
-rw-r--r--kernel/syscalls.h2
-rw-r--r--net/Makefile2
-rw-r--r--net/main.c2
4 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.common b/Makefile.common
index d4e45c3..3ac16ad 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -7,4 +7,4 @@
@echo "CC $@ ..."; $(CC) -c $(CFLAGS) $*.c -o $*.o
%.d: %.c
- @echo "DEP $@ ..."; $(CC) -MM -MT $*.o $(CFLAGS) $*.c > $*.d
+ @echo "DEPS $@ ..."; $(CC) -MM -MT $*.o $(CFLAGS) $*.c > $*.d
diff --git a/kernel/syscalls.h b/kernel/syscalls.h
index 7216a46..5403c2c 100644
--- a/kernel/syscalls.h
+++ b/kernel/syscalls.h
@@ -46,7 +46,7 @@
void fd_init_std_streams(uint32_t pid, bool use_framebuffer);
/** returns string representation of the syscall from its number */
-char* syscall_get_name(uint32_t num);
+char* syscall_get_name(uint32_t num);
/** invoke a syscall from kernel */
uint32_t syscall_generic(uint32_t nr,uint32_t p1, uint32_t p2, uint32_t p3, uint32_t pid);
diff --git a/net/Makefile b/net/Makefile
index 85cf348..c1e81c0 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -91,6 +91,8 @@ DEPS=$(patsubst %.c, %.d, $(SOURCES))
# default target
new: clean tags all
+newrun: new run
+
-include ../Makefile.common
-include $(DEPS)
diff --git a/net/main.c b/net/main.c
index 339f037..040a827 100644
--- a/net/main.c
+++ b/net/main.c
@@ -77,7 +77,7 @@ int main(int argc, char **argv)
printf("read error: %s \n",strerror(errno));
}
- printf("read %i bytes\n",len);
+ printf("read %d bytes\n",len);
net_incoming(&net_dev,buf);
}