We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee3a14a commit b3d95ffCopy full SHA for b3d95ff
kirc.c
@@ -196,7 +196,7 @@ main(int argc, char **argv) {
196
197
while ((cval = getopt(argc, argv, "s:p:o:n:k:c:u:r:w:W:vV")) != -1) {
198
switch (cval) {
199
- case 'v' : puts("kirc 0.0.3"); break;
+ case 'v' : puts("kirc 0.0.3"); return 0;
200
case 'V' : verb = 1; break;
201
case 's' : host = optarg; break;
202
case 'w' : gutl = atoi(optarg); break;
@@ -213,12 +213,12 @@ main(int argc, char **argv) {
213
}
214
215
if (nick == NULL) {
216
- fprintf(stderr, "nick not specified");
+ fprintf(stderr, "nick not specified\n");
217
return 1;
218
219
220
if (pipe(fd) < 0) {
221
- fprintf(stderr, "pipe() failed");
+ fprintf(stderr, "pipe() failed\n");
222
return 2;
223
224
0 commit comments