~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_init.cc

  • Committer: Toru Maesaka
  • Date: 2009-04-28 05:56:07 UTC
  • mto: (997.2.21 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: dev@torum.net-20090428055607-eny6jp1w9rjrfjwi
Removed str2int() from the original string library by MySQL. Use strtol(3) instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
  long int tmp;
30
30
  while (*str && my_isspace(&my_charset_utf8_general_ci, *str))
31
31
    str++;
32
 
  str2int(str,
33
 
          (*str == '0' ? 8 : 10),       /* Octalt or decimalt */
34
 
          0, INT_MAX, &tmp);
 
32
  tmp= strtol(str, NULL, (*str == '0' ? 8 : 10));
35
33
  return (uint32_t) tmp;
36
34
}
37
35