From b65f72e9317f54cceb3eec15a0cc4395461d0267 Mon Sep 17 00:00:00 2001 From: MadCamel Date: Fri, 6 Apr 2018 11:21:14 -0400 Subject: [PATCH 1/2] Removed stray debug call --- src/hostinfo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hostinfo.c b/src/hostinfo.c index 6d3b12d..5134a64 100644 --- a/src/hostinfo.c +++ b/src/hostinfo.c @@ -237,7 +237,6 @@ void do_cpuinfo(COMMAND_ARGS) return; #endif - debug("%s\n",from); cpufrom = from; sentmodel = 0; physid = -1; From 0212f369ab07c1642e2cb03bdbc210c2fe2ea63b Mon Sep 17 00:00:00 2001 From: MadCamel Date: Fri, 6 Apr 2018 11:37:48 -0400 Subject: [PATCH 2/2] Removed some unused variables. There's more to be done. --- src/function.c | 3 +-- src/ons.c | 2 -- src/toybox.c | 5 +---- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/function.c b/src/function.c index 683d8f2..98585a5 100644 --- a/src/function.c +++ b/src/function.c @@ -886,11 +886,10 @@ int num_matches(const char *mask, const char *text) int is_safepath(const char *path, int filemustexist) { struct stat st; - ino_t ino; char tmp[PATH_MAX]; const char *src; char *dst; - int r,mo,dir_r,orr,oerrno; + int mo,dir_r,orr,oerrno; #ifdef TEST memset(&st,0,sizeof(st)); diff --git a/src/ons.c b/src/ons.c index 852dbe4..64c78a2 100644 --- a/src/ons.c +++ b/src/ons.c @@ -150,7 +150,6 @@ void on_join(Chan *chan, char *from) { Ban *ban; ChanUser *cu; - char *channel; int vpri; /* @@ -171,7 +170,6 @@ void on_join(Chan *chan, char *from) if (!chan->bot_is_op) return; - channel = chan->name; cu = chan->users; /* diff --git a/src/toybox.c b/src/toybox.c index f230119..085745d 100644 --- a/src/toybox.c +++ b/src/toybox.c @@ -41,7 +41,6 @@ int orig_kerning; int read_bigcharset_callback(char *rest) { - Strp *sp,**pp; char *opt; int *n,sz; @@ -119,7 +118,6 @@ int read_bigcharset_callback(char *rest) int read_bigcharset(char *fname) { BigC *bigc; - Strp *sp; int fd; if ((fd = open(fname,O_RDONLY)) < 0) @@ -172,7 +170,7 @@ void do_bigsay(COMMAND_ARGS) Strp *sp; char output[MSGLEN]; char *pt,*tail,*temp,*temp2; - int i,x,sz; + int i,x; #ifdef DEBUG debug("(do_bigsay) rest = \"%s\"\n",rest); @@ -189,7 +187,6 @@ void do_bigsay(COMMAND_ARGS) #define OEND (output + MSGLEN - 1) for(i=0;i