A few more fixes. Part 3 of 2 I suppose.

This commit is contained in:
JD Horelick 2010-10-23 22:46:50 -04:00
parent 16d76e8659
commit 0a2e2a35c8
4 changed files with 2 additions and 4 deletions

View 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];

View File

@ -167,7 +167,6 @@ static int
inetport(struct Listener *listener)
{
rb_fde_t *F;
int ret;
int opt = 1;
/*

View 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);

View 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);