eel

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

commit 08979292bff86ac11d085e2f3eb65a3bfcdb3b8e
parent 636a27b68cce13178b15da7bc18300a03bcb17a4
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu, 15 Mar 2018 19:42:40 +0100

gcc does more warnings

Diffstat:
MMakefile | 1-
Aeel.1 | 43+++++++++++++++++++++++++++++++++++++++++++
Meel.c | 2+-
3 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,5 +1,4 @@ CFLAGS = -g -Wpedantic -Wall -Wextra -std=c89 -D_POSIX_C_SOURCE=200809L -CC = clang eel: eel.c ${CC} ${CFLAGS} eel.c -o eel diff --git a/eel.1 b/eel.1 @@ -0,0 +1,43 @@ +.Dd $Mdocdate: March 15 2018$ +.Dt EEL 1 +.Os +. +. +.Sh NAME +. +.Nm eel +.Nd formatter for the ii irc client log format +. +. +.Sh SYNOPSIS +. +.Bd -literal +% tail -f irc.freenode.net/#chan/out | \fBeel\fN +.Ed +. +. +.Sh DESCRIPTION +. +The +.Nm +utility process +.Xr ii 1 Ns -style +logs from stdin and print a prettier format to stdout, grouping messages +by sender. +. +. +.Sh SEE ALSO +. +.Xr ii 1 +.Lk http://tools.suckless.org/ii "ii | suckless.org tools" +. +. +.Sh AUTHORS +. +.An Josuah Demangeon +.Aq Mt mail@josuah.net +. +. +.Sh BUGS +. +Not production-ready yet! diff --git a/eel.c b/eel.c @@ -24,7 +24,7 @@ print_row(char *time, char *nick, char *message) } if (blank == NULL) { for (; *m != ' '; m++) { - if (m == '\0') + if (*m == '\0') goto tail; } blank = m;