X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fclient.c;h=662937f95d11111d5eca501cce6382f2cca13d53;hb=c4cfa1ee86d30d432d711d1f498fa3d6f1a2360d;hp=a7649b49963944d7bfc89cfd86d269477d2ace6c;hpb=5a6963a361961b500fd22949bc083f50d28864c8;p=pazpar2-moved-to-github.git diff --git a/src/client.c b/src/client.c index a7649b4..662937f 100644 --- a/src/client.c +++ b/src/client.c @@ -90,14 +90,7 @@ static int client_use(int delta) int clients_count(void) { - int total = 0; - if (g_mutex) - { - yaz_mutex_enter(g_mutex); - total = no_clients; - yaz_mutex_leave(g_mutex); - } - return total; + return client_use(0); } /** \brief Represents client state for a connection to one search target */