]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
A few more fixes. Part 3 of 2 I suppose.
authorJD Horelick <redacted>
Sun, 24 Oct 2010 02:46:50 +0000 (22:46 -0400)
committerJD Horelick <redacted>
Sun, 24 Oct 2010 02:46:50 +0000 (22:46 -0400)
include/chmode.h
src/listener.c
src/newconf.c
src/s_conf.c

index a4fc8f374cb0e8deb18e9a875dea0b514124b9a2..1eea5e28708a21fc8394e90dc7b72fd673aff52e 100644 (file)
@@ -85,6 +85,7 @@ extern void chm_voice(struct Client *source_p, struct Channel *chptr,
 extern unsigned int cflag_add(char c, ChannelModeFunc function);
 extern void cflag_orphan(char c);
 extern void construct_cflags_strings(void);
+extern void construct_cflag_param_string(void);
 extern char cflagsbuf[256];
 extern char cflagsmyinfo[256];
 extern char cflagsparaminfo[256];
index b5fe775f1cdc36c37ebdbed5c8ccbade268c7c7f..a93ba7bcab8f690691c8ca3384e258edcea6c81a 100644 (file)
@@ -167,7 +167,6 @@ static int
 inetport(struct Listener *listener)
 {
        rb_fde_t *F;
-       int ret;
        int opt = 1;
 
        /*
index 597dedb88d327fe8d3c21c2dfbf1a9f5af815912..d77d095775f81fb13b1f81a6b1a115e825a61a53 100644 (file)
@@ -1932,7 +1932,7 @@ conf_call_set(struct TopConf *tc, char *item, conf_parm_t * value, int type)
 
        /* if it takes one thing, make sure they only passed one thing,
           and handle as needed. */
-       if(value->type & CF_FLIST && !cf->cf_type & CF_FLIST)
+       if(value->type & CF_FLIST && !(cf->cf_type & CF_FLIST))
        {
                conf_report_error
                        ("Option %s::%s does not take a list of values.", tc->tc_name, item);
index bbe7293856f7dc56b13baf5f85d31b73fd24a09f..e04941fc9f1712d37aeb493ba63cf04a59e1cb78 100644 (file)
@@ -1766,8 +1766,6 @@ yyerror(const char *msg)
 int
 conf_fgets(char *lbuf, int max_size, FILE * fb)
 {
-       char *buff;
-
        if(fgets(lbuf, max_size, fb) == NULL)
                return (0);