eel

formatter for ii(1) logs
Log | Files | Refs | README

commit 4dec36477580e9eb3c5da0afc9949f0917121536
parent 5bebd119d058b1cf66cd83179c0fba79d19fa111
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu, 14 Jun 2018 00:10:41 +0200

refactor functions to make the big "get_input" function smaller--amend

Diffstat:
Mshuntty.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shuntty.c b/shuntty.c @@ -97,7 +97,7 @@ cmd_addkey(char *input, ssize_t *end, ssize_t len, int k) } ssize_t -get_input(char *input, ssize_t end, ssize_t len) +key(char *input, ssize_t end, ssize_t len) { int k; @@ -193,7 +193,7 @@ main(int argc, char **argv) if ((pfd[0].revents | pfd[1].revents) & POLLHUP) break; if (pfd[1].revents & POLLIN) - if ((end = get_input(input, end, sizeof(input))) == -1) + if ((end = key(input, end, sizeof(input))) == -1) break; } fputc('\n', stderr);