From 2027f0261b90f17fec770fd2482a6f92478d0672 Mon Sep 17 00:00:00 2001 From: Mark Riddoch Date: Fri, 21 Jun 2013 17:28:56 +0200 Subject: [PATCH] Documentation cleanup and a statistics fix --- core/config.c | 5 +++-- core/dcb.c | 1 + core/server.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/config.c b/core/config.c index 06cf54e6b..eab55eccf 100644 --- a/core/config.c +++ b/core/config.c @@ -41,12 +41,13 @@ static char *config_get_value(CONFIG_PARAMETER *, const char *); /** - * Config item handler + * Config item handler for the ini file reader * * @param userdata The config context element - * @param secton The config file section + * @param section The config file section * @param name The Parameter name * @param value The Parameter value + * @return zero on error */ static int handler(void *userdata, const char *section, const char *name, const char *value) diff --git a/core/dcb.c b/core/dcb.c index 2e3d04eab..d1699e458 100644 --- a/core/dcb.c +++ b/core/dcb.c @@ -154,6 +154,7 @@ GWPROTOCOL *funcs; free_dcb(dcb); return NULL; } + server->stats.n_connections++; poll_add_dcb(dcb); /* diff --git a/core/server.c b/core/server.c index c13a37642..06e385a4f 100644 --- a/core/server.c +++ b/core/server.c @@ -171,7 +171,7 @@ SERVER *ptr; * Convert a set of server status flags to a string, the returned * string has been malloc'd and must be free'd by the caller * - * @param SERVER The server to return the status of + * @param server The server to return the status of * @return A string representation of the status flags */ char *