libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit be4d762572af879fda90cb60af86687646756df6
parent 5d5e9e5d3ebfd2f86359c063b6331f0b8c3e45d5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 11 Jun 2010 22:40:35 +0000

cleaner

Diffstat:
Msrc/daemon/response.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/daemon/response.c b/src/daemon/response.c @@ -270,7 +270,7 @@ MHD_destroy_response (struct MHD_Response *response) if (response == NULL) return; pthread_mutex_lock (&response->mutex); - if (0 != --response->reference_count) + if (0 != --(response->reference_count)) { pthread_mutex_unlock (&response->mutex); return; @@ -295,7 +295,7 @@ void MHD_increment_response_rc (struct MHD_Response *response) { pthread_mutex_lock (&response->mutex); - response->reference_count++; + (response->reference_count)++; pthread_mutex_unlock (&response->mutex); }