Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1.   if (strcasecmp ("Host", child->key) == 0)
  2.       cf_util_get_string (child, &cb->host);
  3.     else if (strcasecmp ("Port", child->key) == 0)
  4.     {
  5.       int tmp = cf_util_get_port_number (child);
  6.       if (tmp > 0)
  7.         cb->port = tmp;
  8.     }
  9.     else if (strcasecmp ("User", child->key) == 0)
  10.       cf_util_get_string (child, &cb->user);
  11.     else if (strcasecmp ("Password", child->key) == 0)
  12.       cf_util_get_string (child, &cb->passwd);
  13.     else if (strcasecmp ("Database", child->key) == 0)
  14.       cf_util_get_string (child, &cb->database);
  15.     else
  16.       ERROR ("write_mysql plugin: The config option \"%s\" "
  17.           "is not allowed in \"Instance\" blocks.", child->key);
  18.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement