sacc

sacc (saccomys): simple gopher client.
Log | Files | Refs | LICENSE

commit f4d2323a6ee66f698e6f1b0611bd3beb04761330
parent 675924be45d5f7e636610792c4aaed40caec012d
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu,  6 Jul 2017 00:18:04 +0200

Simplify delve

Diffstat:
sacc.c | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/sacc.c b/sacc.c @@ -381,20 +381,17 @@ delve(Item *hole) switch (dig(entry, hole)) { case '0': displaytextitem(hole); - hole = entry; break; case '1': + entry = hole; break; - default: + case 0: fprintf(stderr, "Couldn't get %s:%s/%c%s\n", hole->host, hole->port, hole->type, hole->selector); - hole = entry; - break; } - display(hole); - entry = hole; - hole = selectitem(hole); + display(entry); + hole = selectitem(entry); } }