cgo

[Fork] Gopher Client
git clone https://git.jojolepro.com/cgo.git
Log | Files | Refs | README | LICENSE

commit ca69bbb7183e45f6ef67b86931b65ae4c8dde6f9
parent 37bed3c5eaa9db5da28783a00517e47a82c01950
Author: Sebastian Steinhauer <s.steinhauer@yahoo.de>
Date:   Mon,  9 Oct 2017 10:18:45 +0200

Merge pull request #7 from jad340/master

Fixed -v flag
Diffstat:
Mcgo.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/cgo.c b/cgo.c @@ -770,8 +770,8 @@ int main(int argc, char *argv[]) usage(); break; case 'v': - banner(stderr); - exit(EXIT_FAILURE); + banner(stdout); + exit(EXIT_SUCCESS); default: usage(); } else { @@ -780,7 +780,6 @@ int main(int argc, char *argv[]) } /* parse uri */ - banner(stdout); if (! parse_uri(uri)) { banner(stderr); fprintf(stderr, "invalid gopher URI: %s", argv[i]);