diff options
author | Omar Polo <op@omarpolo.com> | 2020-10-14 09:21:59 +0200 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2020-10-14 10:09:00 +0200 |
commit | 9c56b0a78a8194849c8d3b0f3e9727407b03dda0 (patch) | |
tree | 4c8476842edec3d347ada6bfaeedfe297451966f | |
parent | 10fed44c7988d70a4dc2f57e24ca92b3f72924b8 (diff) |
style
-rw-r--r-- | gmid.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -357,7 +357,7 @@ send_dir(char *path, struct pollfd *fds, struct client *client) bzero(fpath, PATHBUF); - if (*path != '.') + if (path[0] != '.') fpath[0] = '.'; /* this cannot fail since sizeof(fpath) > maxlen of path */ @@ -525,7 +525,6 @@ do_accept(int sock, struct tls *ctx, struct pollfd *fds, struct client *clients) } } - printf("too much clients. goodbye bro!\n"); close(fd); } @@ -597,7 +596,6 @@ loop(struct tls *ctx, int sock) } handle(&fds[i], &clients[i]); - } } } |