From f6e3e51d81ac692afe19ef6294ef25baddb47ce6 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 31 Oct 2022 21:29:05 +0000 Subject: remove old code that i forgot to remove --- bee.c | 7 +------ 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3