From 3afdccc7087797a106263c481bfc406049124fa6 Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 27 Sep 2018 15:03:14 +0200 Subject: litttle fix in netstack --- Makefile.common | 2 +- kernel/syscalls.h | 2 +- net/Makefile | 2 ++ net/main.c | 2 +- 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); } -- cgit v1.2.3