regression fix

This commit is contained in:
Nico Golde 2007-06-12 11:05:33 +02:00
parent 2e9a70e67d
commit ab89c0c4f5

8
ii.c
View File

@ -3,7 +3,6 @@
* (C)opyright MMV-MMVII Nico Golde <nico at ngolde dot de> * (C)opyright MMV-MMVII Nico Golde <nico at ngolde dot de>
* See LICENSE file for license details. * See LICENSE file for license details.
*/ */
#include <errno.h> #include <errno.h>
#include <netdb.h> #include <netdb.h>
#include <sys/types.h> #include <sys/types.h>
@ -103,8 +102,7 @@ static int open_channel(char *name) {
return open(infile, O_RDONLY | O_NONBLOCK, 0); return open(infile, O_RDONLY | O_NONBLOCK, 0);
} }
static void add_channel(char *name) static void add_channel(char *name) {
{
Channel *c; Channel *c;
int fd; int fd;
@ -114,8 +112,8 @@ static void add_channel(char *name)
fd = open_channel(name); fd = open_channel(name);
if(fd == -1) { if(fd == -1) {
perror("ii: cannot create in channel"); printf("ii: exiting, cannot create in channel: %s\n", name);
return; exit(EXIT_FAILURE);
} }
c = calloc(1, sizeof(Channel)); c = calloc(1, sizeof(Channel));
if(!c) { if(!c) {