aboutsummaryrefslogtreecommitdiff
path: root/bee.c
diff options
context:
space:
mode:
Diffstat (limited to 'bee.c')
-rw-r--r--bee.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/bee.c b/bee.c
index 9a2e0a5..daa52bd 100644
--- a/bee.c
+++ b/bee.c
@@ -22,11 +22,6 @@ main()
if (irc_connect()) { fputs("falure in irc_connect\n",stderr); return 1; }
if (irc_handshake()) { fputs("failure in irc_handshake\n",stderr); return 1; }
- int unixfd;
- if ((unixfd = unix_setup("bees2.sock")) == -1) {
- fputs("failure in unix_setup\n",stderr); return -1;
- }
-
// pfs[0] is the irc socket
// pfs[k>=1] is the unix socket that should send to channel g_chanlist[k-1]
struct pollfd *pfs = malloc((1 + g_nchannels) * sizeof(struct pollfd));
@@ -44,7 +39,7 @@ main()
int fd;
if ((fd = unix_setup(fname)) == -1) {
fputs("failure in unix_setup\n",stderr);
- return -1;
+ return 1;
}
pfs[i+1].fd = fd;
pfs[i+1].events = POLLIN;