summaryrefslogtreecommitdiff
path: root/libirc/libirc.c
diff options
context:
space:
mode:
authorepochqwert <epoch@53flpnlls43fcguy.onion>2015-02-04 03:28:30 -0600
committerepochqwert <epoch@53flpnlls43fcguy.onion>2015-02-04 03:28:30 -0600
commite80dd3006171b33705395b0c7547f03925670bf9 (patch)
tree0588ce56dc4ab3cc824bb600698025e0c031bc63 /libirc/libirc.c
parent1b0d057b5068a5526aef1a5b1a2338d9f3bc6ef3 (diff)
downloadsegfault-e80dd3006171b33705395b0c7547f03925670bf9.tar.gz
segfault-e80dd3006171b33705395b0c7547f03925670bf9.zip
a round of warnings on Linux fixed.
Diffstat (limited to 'libirc/libirc.c')
-rw-r--r--libirc/libirc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libirc/libirc.c b/libirc/libirc.c
index 54ba859..101d40e 100644
--- a/libirc/libirc.c
+++ b/libirc/libirc.c
@@ -38,7 +38,6 @@ int serverConnect(char *serv,char *port) {
}
int runit(int fd,void (*line_handler)(),void (*extra_handler)()) {
- FILE *fp;
fd_set master;
fd_set readfs;
struct timeval timeout;
@@ -53,7 +52,6 @@ int runit(int fd,void (*line_handler)(),void (*extra_handler)()) {
FD_ZERO(&readfs);
FD_SET(fd,&master);
fdmax=fd;
- fp=fdopen(fd,"rw");
memset(backlog,0,CHUNK);
memset(buffer,0,CHUNK);
if(fd) {
@@ -104,11 +102,8 @@ int runit(int fd,void (*line_handler)(),void (*extra_handler)()) {
strcpy(t,"PONG ");
strcat(t,line+6);
write(fd,t,strlen(t));
- //fprintf(fp,"PONG %s",line+6);//a whole FILE * and fdopen JUST for this??? oy...
- //fflush(fp);
#ifdef DEBUG
printf("%s\nPONG %s\n",line,line+6);
- write(fd,"PRIVMSG %s :PONG! w00t!\r\n",DEBUG,28);
#endif
} else if(!strncmp(line,"ERROR",5)) {
#ifdef DEBUG