~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_getopt.c

Merging stdize-code with main trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
386
386
              */
387
387
            (*argc)--;
388
388
            if (!optend || *optend == '1' ||
389
 
                !my_strcasecmp(&my_charset_latin1, optend, "true"))
 
389
                !my_strcasecmp(&my_charset_utf8_general_ci, optend, "true"))
390
390
              *((bool*) value)= (bool) 1;
391
391
            else if (*optend == '0' ||
392
 
                     !my_strcasecmp(&my_charset_latin1, optend, "false"))
 
392
                     !my_strcasecmp(&my_charset_utf8_general_ci, optend, "false"))
393
393
              *((bool*) value)= (bool) 0;
394
394
            else
395
395
            {
1147
1147
      putchar(' ');
1148
1148
    if (optp->comment && *optp->comment)
1149
1149
    {
1150
 
      const char *comment= _(optp->comment), *end= strend(comment);
 
1150
      const char *comment= _(optp->comment), *end= strchr(comment, '\0');
1151
1151
 
1152
1152
      while ((uint) (end - comment) > comment_space)
1153
1153
      {