From 9c5dbbad8fa61e3031ae1fb0546e54bfee2a2898 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 31 Mar 2019 22:17:27 +0000 Subject: cleaned up some loose whitespace --- segfault.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'segfault.c') diff --git a/segfault.c b/segfault.c index 9e6ec6c..e56714f 100644 --- a/segfault.c +++ b/segfault.c @@ -481,7 +481,6 @@ void file_tail(int fd,char *from,char *file,char *args,int opt,struct user *user tailf[i].opt=opt; tailf[i].inode=st.st_ino; if(!(tailf[i].user=malloc(sizeof(struct user)))) exit(__LINE__); - if(!(tailf[i].user->nick=strdup(user->nick))) exit(__LINE__); if(!(tailf[i].user->user=strdup(user->user))) exit(__LINE__); if(!(tailf[i].user->host=strdup(user->host))) exit(__LINE__); @@ -568,7 +567,7 @@ void c_changetail(int fd,char *from,char *line,struct user *user,...) { } if((fdd=open(line,O_RDONLY|O_NONBLOCK,0)) == -1) { snprintf(tmp,sizeof(tmp)-1,"changetail: %s: (%s) fd:%d",strerror(errno),line,fdd); - privmsg(fd,"#cmd",tmp); + privmsg(fd,"#cmd",tmp); return; } if(debug) { @@ -697,7 +696,6 @@ void c_aliases_h(int fd,char *from,char *line,...) { privmsg(fd,from,"usage: !aliases [search-term]"); return; } - for(i=0;i