diff options
author | epochqwert <epoch@hacking.allowed.org> | 2015-03-31 13:32:22 -0500 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2015-03-31 13:32:22 -0500 |
commit | 79ea8f2e8cd7e82bfd5f9ed4eb842eff63d2b434 (patch) | |
tree | 1b64303c27b6ebbda230ad172351847cc3097b8b | |
parent | fea9534f13d5e0c603fd74f3f7f00ffe9094323c (diff) | |
download | libirc-79ea8f2e8cd7e82bfd5f9ed4eb842eff63d2b434.tar.gz libirc-79ea8f2e8cd7e82bfd5f9ed4eb842eff63d2b434.zip |
I don't remember.
-rw-r--r-- | libirc.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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. |