From 79ea8f2e8cd7e82bfd5f9ed4eb842eff63d2b434 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Tue, 31 Mar 2015 13:32:22 -0500 Subject: I don't remember. --- libirc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libirc.c b/libirc.c index 639b50d..c21867c 100644 --- a/libirc.c +++ b/libirc.c @@ -17,18 +17,10 @@ int main(int argc,char *argv[]) { return 0; } -#define SILLYLIMIT 256 - int serverConnect(char *serv,char *port) { int rv; int fd=0; - int n=1; - int try_ipv4=0; - char buf[SILLYLIMIT]; struct addrinfo hints, *servinfo, *p=0; - struct in_addr saddr; - struct in6_addr saddr6; - struct hostent *he; memset(&hints,0,sizeof hints); hints.ai_family=AF_INET; hints.ai_socktype=SOCK_STREAM; @@ -230,7 +222,7 @@ char **line_cutter(int fd,char *line,struct user *user) { if((a[0]=strchr((user->nick),' '))) { *a[0]=0; a[0]++; - for(i=0;a[i+1]=strchr(a[i],' ');i++) { + for(i=0;(a[i+1]=strchr(a[i],' '));i++) { *a[i+1]=0; a[i+1]++; if(*a[i+1] == ':') {//we're done. -- cgit v1.2.3