Clang warning fixes part 2 of 2.
This commit is contained in:
parent
6c7315ec36
commit
16d76e8659
|
@ -231,7 +231,7 @@ inetport(struct Listener *listener)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((ret = rb_listen(F, RATBOX_SOMAXCONN)))
|
if(rb_listen(F, RATBOX_SOMAXCONN))
|
||||||
{
|
{
|
||||||
ilog_error("listen()");
|
ilog_error("listen()");
|
||||||
rb_close(F);
|
rb_close(F);
|
||||||
|
|
|
@ -2020,7 +2020,7 @@ add_conf_item(const char *topconf, const char *name, int type, void (*func) (voi
|
||||||
if((tc = find_top_conf(topconf)) == NULL)
|
if((tc = find_top_conf(topconf)) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if((cf = find_conf_item(tc, name)) != NULL)
|
if(find_conf_item(tc, name))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
cf = rb_malloc(sizeof(struct ConfEntry));
|
cf = rb_malloc(sizeof(struct ConfEntry));
|
||||||
|
|
|
@ -1768,7 +1768,7 @@ conf_fgets(char *lbuf, int max_size, FILE * fb)
|
||||||
{
|
{
|
||||||
char *buff;
|
char *buff;
|
||||||
|
|
||||||
if((buff = fgets(lbuf, max_size, fb)) == NULL)
|
if(fgets(lbuf, max_size, fb) == NULL)
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
return (strlen(lbuf));
|
return (strlen(lbuf));
|
||||||
|
|
|
@ -575,7 +575,7 @@ static void
|
||||||
conn_mod_read_cb(rb_fde_t *fd, void *data)
|
conn_mod_read_cb(rb_fde_t *fd, void *data)
|
||||||
{
|
{
|
||||||
conn_t *conn = data;
|
conn_t *conn = data;
|
||||||
const char *err = remote_closed;
|
const char *err;
|
||||||
int length;
|
int length;
|
||||||
if(conn == NULL)
|
if(conn == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue