gods

a simple blocklist for ssh
Log | Files | Refs | README | LICENSE

commit 5188f57331383f5cd6c0d3e6ae2235d881c65d50
parent 1a45a19cc3c60085a757111ee6a5133e63538e13
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Sat, 18 Sep 2021 16:51:40 +0200

Implement undoword()

Use undoword() to un-read a token.

Diffstat:
Mparser.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/parser.c b/parser.c @@ -180,6 +180,14 @@ word() } static int +undoword() +{ + lp -= strlen(token); + + return 1; +} + +static int timestamp() { struct tm tm;