aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-07-07 09:46:37 +0000
committerOmar Polo <op@omarpolo.com>2021-07-07 09:46:37 +0000
commita8a1f439210de9538b196c6bb5470c306379128c (patch)
tree53c25939117755a85860dab8670cc7faaad56635 /server.c
parent68ef1170922d8c457b529dd7f64dc207a3c8b5a3 (diff)
style(9)-ify
Diffstat (limited to 'server.c')
-rw-r--r--server.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/server.c b/server.c
index 93e5ffd..905ca0f 100644
--- a/server.c
+++ b/server.c
@@ -930,10 +930,12 @@ enter_handle_dirlist(int fd, short ev, void *d)
l = snprintf(c->sbuf, sizeof(c->sbuf),
"# Index of %s\n\n", b);
if (l >= sizeof(c->sbuf)) {
- /* this is impossible, given that we have enough space
+ /*
+ * This is impossible, given that we have enough space
* in c->sbuf to hold the ancilliary string plus the
* full path; but it wouldn't read nice without some
- * error checking, and I'd like to avoid a strlen. */
+ * error checking, and I'd like to avoid a strlen.
+ */
close_conn(fd, ev, c);
return;
}
@@ -1253,8 +1255,10 @@ handle_imsg_quit(struct imsgbuf *ibuf, struct imsg *imsg, size_t len)
(void)imsg;
(void)len;
- /* don't call event_loopbreak since we want to finish to
- * handle the ongoing connections. */
+ /*
+ * don't call event_loopbreak since we want to finish to
+ * handle the ongoing connections.
+ */
shutting_down = 1;