gods

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

commit ec23ce13015b77577740ce925fb2c9d24cd785d2
parent 77f26df5d45e7bb2e80d23dd0650471f90382efa
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Thu, 30 Sep 2021 19:55:23 +0200

Style Fix

Diffstat:
Mmain.c | 4++--
Mparser.c | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c @@ -50,16 +50,16 @@ init(struct attacker *a) int main(int argc, char **argv) { - struct attacker *a; FILE *fp; char *line; int c, found; + struct attacker *a; fp = fopen(sshlog, "r"); if (!fp) err(1, "fopen failed: %s", sshlog); - for (;;) { + for ( ; ; ) { line = buf; while ((c = fgetc(fp)) != EOF) { if (c == '\n') { diff --git a/parser.c b/parser.c @@ -221,7 +221,7 @@ constat() undoword(); break; } - for (; *tp; ) + for ( ; *tp; ) *sp++ = *tp++; } *sp++ = ' ';