aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-10-31 21:29:05 +0000
committerubq323 <ubq323@ubq323.website>2022-10-31 21:29:05 +0000
commitf6e3e51d81ac692afe19ef6294ef25baddb47ce6 (patch)
tree7fab9652b81488e2a67e1a4c7f74ebaff287bc49
parentf5eee946f2c2028c5cbc7b968a6ffef7f7972f3b (diff)
remove old code that i forgot to remove
-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;