hfingerd

hhvn.uk:79
Log | Files | Refs | LICENSE

commit 1e99dd5ff4c1714d2d110203b422407a6745c2aa
parent c8fb7e649afb6940cdd662bb8b832e1152d93373
Author: hhvn <dev@hhvn.uk>
Date:   Sun,  6 Jun 2021 17:35:14 +0100

main.{c,h}: move definitions to header

Diffstat:
Mmain.c | 3---
Mmain.h | 4++++
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c @@ -15,9 +15,6 @@ #include "arg.h" #include "handler.h" -#define EXIT_USAGE 2 -#define CQUEUE 255 - /* defaults, must be strings to replace args */ char *host = "localhost", *port = "79", diff --git a/main.h b/main.h @@ -9,4 +9,8 @@ int die(const int exitc, const char *format, ...); int getsock(struct addrinfo *hints, char *host, char *port); int read_line(int fd, char *dest, size_t len); void handoff(int fd); + +#define EXIT_USAGE 2 +#define CQUEUE 255 + #endif /* H_MAIN */