summary refs log tree commit diff
path: root/daemon.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-15 15:16:50 -0400
committerJune McEnroe <june@causal.agency>2020-08-15 15:16:50 -0400
commitb7e36c72a604796209f7f7b11d88aa3b75c1b44f (patch)
tree5e0198c4a6ef0688d6db2e086e8a8f3ed4c2dcb3 /daemon.h
parentRead service pipes (diff)
downloadcatsit-b7e36c72a604796209f7f7b11d88aa3b75c1b44f.tar.gz
catsit-b7e36c72a604796209f7f7b11d88aa3b75c1b44f.zip
Parse control commands
Diffstat (limited to 'daemon.h')
-rw-r--r--daemon.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon.h b/daemon.h
index 17b1c7f..b8b288b 100644
--- a/daemon.h
+++ b/daemon.h
@@ -51,9 +51,10 @@ static inline int prependAdd(const char *command) {
 	return 0;
 }
 
+enum { LineCap = 512 };
 struct Line {
 	size_t len;
-	char buf[512];
+	char buf[LineCap];
 };
 
 static inline const char *lineFlush(struct Line *line) {