aboutsummaryrefslogtreecommitdiffstats
path: root/kirc.c
diff options
context:
space:
mode:
authormcpcpc <michaelczigler@icloud.com>2020-08-22 04:11:28 -0400
committermcpcpc <michaelczigler@icloud.com>2020-08-22 04:11:28 -0400
commitb3d95ff61747c0e29810207925ff9e50106f03fd (patch)
tree2175757f54733e8463bf19bbcca6733b6b7943d7 /kirc.c
parentbump version (diff)
downloadkirc-b3d95ff61747c0e29810207925ff9e50106f03fd.tar.gz
kirc-b3d95ff61747c0e29810207925ff9e50106f03fd.tar.bz2
kirc-b3d95ff61747c0e29810207925ff9e50106f03fd.tar.xz
kirc-b3d95ff61747c0e29810207925ff9e50106f03fd.tar.zst
kirc-b3d95ff61747c0e29810207925ff9e50106f03fd.zip
fix -v behavior to return 0
Diffstat (limited to 'kirc.c')
-rw-r--r--kirc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kirc.c b/kirc.c
index 47f3830..e7da572 100644
--- a/kirc.c
+++ b/kirc.c
@@ -196,7 +196,7 @@ main(int argc, char **argv) {
while ((cval = getopt(argc, argv, "s:p:o:n:k:c:u:r:w:W:vV")) != -1) {
switch (cval) {
- case 'v' : puts("kirc 0.0.3"); break;
+ case 'v' : puts("kirc 0.0.3"); return 0;
case 'V' : verb = 1; break;
case 's' : host = optarg; break;
case 'w' : gutl = atoi(optarg); break;
@@ -213,12 +213,12 @@ main(int argc, char **argv) {
}
if (nick == NULL) {
- fprintf(stderr, "nick not specified");
+ fprintf(stderr, "nick not specified\n");
return 1;
}
if (pipe(fd) < 0) {
- fprintf(stderr, "pipe() failed");
+ fprintf(stderr, "pipe() failed\n");
return 2;
}