diff options
author | June McEnroe <june@causal.agency> | 2020-08-15 15:16:50 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-08-15 15:16:50 -0400 |
commit | b7e36c72a604796209f7f7b11d88aa3b75c1b44f (patch) | |
tree | 5e0198c4a6ef0688d6db2e086e8a8f3ed4c2dcb3 /daemon.h | |
parent | Read service pipes (diff) | |
download | catsit-b7e36c72a604796209f7f7b11d88aa3b75c1b44f.tar.gz catsit-b7e36c72a604796209f7f7b11d88aa3b75c1b44f.zip |
Parse control commands
Diffstat (limited to 'daemon.h')
-rw-r--r-- | daemon.h | 3 |
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) { |