aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2020-10-14 09:21:59 +0200
committerOmar Polo <op@omarpolo.com>2020-10-14 10:09:00 +0200
commit9c56b0a78a8194849c8d3b0f3e9727407b03dda0 (patch)
tree4c8476842edec3d347ada6bfaeedfe297451966f
parent10fed44c7988d70a4dc2f57e24ca92b3f72924b8 (diff)
style
-rw-r--r--gmid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gmid.c b/gmid.c
index c140616..741d9e7 100644
--- a/gmid.c
+++ b/gmid.c
@@ -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]);
-
}
}
}