Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcasecmp ("Host", child->key) == 0)
- cf_util_get_string (child, &cb->host);
- else if (strcasecmp ("Port", child->key) == 0)
- {
- int tmp = cf_util_get_port_number (child);
- if (tmp > 0)
- cb->port = tmp;
- }
- else if (strcasecmp ("User", child->key) == 0)
- cf_util_get_string (child, &cb->user);
- else if (strcasecmp ("Password", child->key) == 0)
- cf_util_get_string (child, &cb->passwd);
- else if (strcasecmp ("Database", child->key) == 0)
- cf_util_get_string (child, &cb->database);
- else
- ERROR ("write_mysql plugin: The config option \"%s\" "
- "is not allowed in \"Instance\" blocks.", child->key);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement