daemon.c: MHD_ip_limit_add(): small clarification

This commit is contained in:
Evgeny Grin (Karlson2k) committed 2015-09-06 16:01:53 +00:00
1 parent 9e87c9a225
commit 9d25d25ed3
1 file changed
+1 -1
+1 -1
View File
@@ -351,7 +351,7 @@ MHD_ip_limit_add (struct MHD_Daemon *daemon,
key = (struct MHD_IPCount *) node;
/* Test if there is room for another connection; if so,
* increment count */
result = (key->count < daemon->per_ip_connection_limit);
result = (key->count < daemon->per_ip_connection_limit) ? MHD_YES : MHD_NO;
if (MHD_YES == result)
++key->count;