Change deref to the more sensible unref, and add a couple I missed before.

This commit is contained in:
nicm
2015-06-05 18:06:30 +00:00
parent 8c93b768e4
commit 10e90ae01f
6 changed files with 8 additions and 8 deletions

View File

@@ -222,7 +222,7 @@ server_client_lost(struct client *c)
if (event_initialized(&c->event))
event_del(&c->event);
server_client_deref(c);
server_client_unref(c);
server_add_accept(0); /* may be more file descriptors now */
@@ -233,9 +233,9 @@ server_client_lost(struct client *c)
/* Remove reference from a client. */
void
server_client_deref(struct client *c)
server_client_unref(struct client *c)
{
log_debug("deref client %d (%d references)", c->ibuf.fd, c->references);
log_debug("unref client %d (%d references)", c->ibuf.fd, c->references);
c->references--;
if (c->references == 0)