summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 33e94d2)
raw | patch | inline | side by side (parent: 33e94d2)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 15 Apr 2009 08:46:23 +0000 (10:46 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 15 Apr 2009 08:46:23 +0000 (10:46 +0200) |
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index c71275cdf5bcb956b45f69fe97e14e2caf667350..b808a9eeecf1b568c6765c0ea53d0c825fc1d548 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
* </Instance>
* URL ...
* </Plugin>
- */
+ */
static int config_set_string (char **ret_string,
oconfig_item_t *ci)
{
char *string;
if ((ci->values_num != 1)
- || (ci->values[0].type != OCONFIG_TYPE_STRING))
- {
- WARNING ("apache plugin: The `%s' config option "
- "needs exactly one string argument.", ci->key);
- return (-1);
- }
+ || (ci->values[0].type != OCONFIG_TYPE_STRING))
+ {
+ WARNING ("apache plugin: The `%s' config option "
+ "needs exactly one string argument.", ci->key);
+ return (-1);
+ }
string = strdup (ci->values[0].value.string);
if (string == NULL)