nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit d141e11b0358dc13719ba7ca8f0ab3bcf5e77c3e
parent b6c942d6ef58572e4b2f713e537d502ee8331782
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon, 16 Sep 2019 20:36:17 -0400

nserver: nsocket.c: Move includes to nsocket.h.

Diffstat:
nserver/src/nsocket.c | 5-----
nserver/src/nsocket.h | 6++++++
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/nserver/src/nsocket.c b/nserver/src/nsocket.c @@ -1,8 +1,3 @@ -#include <sys/types.h> -#include <sys/socket.h> -#include <netdb.h> - -#include <dbg.h> #include <nsocket.h> int get_socket() diff --git a/nserver/src/nsocket.h b/nserver/src/nsocket.h @@ -1,6 +1,12 @@ #ifndef _nsocket_h #define _nsocket_h +#include <sys/types.h> +#include <sys/socket.h> +#include <netdb.h> + +#include <dbg.h> + #define PORT "7899" int get_socket();