Clang warning fixes part 2 of 2.

This commit is contained in:
JD Horelick 2010-10-23 22:32:31 -04:00
parent 6c7315ec36
commit 16d76e8659
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

@ -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;