From: Dennis Schafroth Date: Tue, 28 Dec 2010 15:17:35 +0000 (+0100) Subject: Cosmetic: rename client variable to cl X-Git-Tag: v1.5.1~11 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;ds=sidebyside;h=ab3a2f3941c1ee8d0c1332901d96cb1e751edbfd;p=pazpar2-moved-to-github.git Cosmetic: rename client variable to cl --- diff --git a/src/client.c b/src/client.c index 1cc855a..fad815c 100644 --- a/src/client.c +++ b/src/client.c @@ -731,27 +731,27 @@ void client_start_search(struct client *cl) struct client *client_create(void) { - struct client *r = xmalloc(sizeof(*r)); - r->maxrecs = 100; - r->startrecs = 0; - r->pquery = 0; - r->cqlquery = 0; - r->database = 0; - r->connection = 0; - r->session = 0; - r->hits = 0; - r->record_offset = 0; - r->diagnostic = 0; - r->state = Client_Disconnected; - r->show_raw = 0; - r->resultset = 0; - r->mutex = 0; - pazpar2_mutex_create(&r->mutex, "client"); - r->preferred = 0; - r->ref_count = 1; + struct client *cl = xmalloc(sizeof(*cl)); + cl->maxrecs = 100; + cl->startrecs = 0; + cl->pquery = 0; + cl->cqlquery = 0; + cl->database = 0; + cl->connection = 0; + cl->session = 0; + cl->hits = 0; + cl->record_offset = 0; + cl->diagnostic = 0; + cl->state = Client_Disconnected; + cl->show_raw = 0; + cl->resultset = 0; + cl->mutex = 0; + pazpar2_mutex_create(&cl->mutex, "client"); + cl->preferred = 0; + cl->ref_count = 1; client_use(1); - return r; + return cl; } void client_lock(struct client *c)