commit 267141d354bfa43906d60dfe61445601089e41de
parent b8742af45b8879381da73052360c024a35afa0b1
Author: hhvn <dev@hhvn.uk>
Date: Sat, 5 Jun 2021 23:47:22 +0100
main.{c,h}: rename handler() to handoff()
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/main.c b/main.c
@@ -107,7 +107,7 @@ read_line(int fd, char *dest, size_t len) {
}
void
-handler(int fd) {
+handoff(int fd) {
char user[1024];
read_line(fd, user, sizeof(user));
@@ -162,7 +162,7 @@ main(int argc, char *argv[]) {
close(handle);
break;
case 0:
- handler(handle);
+ handoff(handle);
shutdown(handle, SHUT_RDWR);
close(handle);
break;
diff --git a/main.h b/main.h
@@ -8,5 +8,5 @@ int error(const char *format, ...);
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 handler(int fd);
+void handoff(int fd);
#endif /* H_MAIN */