Fix some various warnings.
Some from ShadowIRCd, one from ircd-seven.
This commit is contained in:
parent
f1e5a31775
commit
eac04554fd
3 changed files with 3 additions and 6 deletions
|
@ -168,7 +168,6 @@ static int
|
|||
inetport(struct Listener *listener)
|
||||
{
|
||||
rb_fde_t *F;
|
||||
int ret;
|
||||
int opt = 1;
|
||||
|
||||
/*
|
||||
|
@ -232,7 +231,7 @@ inetport(struct Listener *listener)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if((ret = rb_listen(F, RATBOX_SOMAXCONN)))
|
||||
if(rb_listen(F, RATBOX_SOMAXCONN))
|
||||
{
|
||||
ilog_error("listen()");
|
||||
rb_close(F);
|
||||
|
|
|
@ -1562,9 +1562,7 @@ yyerror(const char *msg)
|
|||
int
|
||||
conf_fgets(char *lbuf, int max_size, FILE * fb)
|
||||
{
|
||||
char *buff;
|
||||
|
||||
if((buff = fgets(lbuf, max_size, fb)) == NULL)
|
||||
if(fgets(lbuf, max_size, fb) == NULL)
|
||||
return (0);
|
||||
|
||||
return (strlen(lbuf));
|
||||
|
|
|
@ -116,7 +116,7 @@ change_isupport(const char *name, const char *(*func)(const void *), const void
|
|||
{
|
||||
rb_dlink_node *ptr;
|
||||
struct isupportitem *item;
|
||||
const void *oldvalue;
|
||||
const void *oldvalue = NULL;
|
||||
|
||||
RB_DLINK_FOREACH(ptr, isupportlist.head)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue