commit 814dbe4b69f744550e494fb5b91a48b7d3dcc2f8
parent 0ef5605336ef24fd15097a5936513c46c219d645
Author: hhvn <dev@hhvn.uk>
Date: Wed, 16 Jun 2021 23:13:44 +0100
main.c main.h: return void from die()
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.c b/main.c
@@ -59,7 +59,7 @@ error(const char *format, ...) {
return 1;
}
-int
+void
die(const int exitc, const char *format, ...) {
va_list ap;
diff --git a/main.h b/main.h
@@ -5,7 +5,7 @@
void usage(void);
int verbose(const char *format, ...);
int error(const char *format, ...);
-int die(const int exitc, const char *format, ...);
+void 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);