~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_create.cc

  • Committer: Monty Taylor
  • Date: 2009-03-22 00:20:27 UTC
  • mto: (960.2.17 fully-remove-queue)
  • mto: This revision was merged to the branch mainline in revision 961.
  • Revision ID: mordred@inaugust.com-20090322002027-4x9nxp8h4k21vkms
Fixed linkage issues on solaris.

Show diffs side-by-side

added added

removed removed

Lines of Context:
490
490
  */
491
491
  if (ci->index_file_name)
492
492
  {
493
 
    char *iext= strrchr(ci->index_file_name, '.');
 
493
    char *iext= strrchr((char *)ci->index_file_name, '.');
494
494
    int have_iext= iext && !strcmp(iext, MI_NAME_IEXT);
495
495
    if (options & HA_OPTION_TMP_TABLE)
496
496
    {
497
497
      char *path;
498
498
      /* chop off the table name, tempory tables use generated name */
499
 
      if ((path= strrchr(ci->index_file_name, FN_LIBCHAR)))
 
499
      if ((path= strrchr((char *)ci->index_file_name, FN_LIBCHAR)))
500
500
        *path= '\0';
501
501
      fn_format(filename, name, ci->index_file_name, MI_NAME_IEXT,
502
502
                MY_REPLACE_DIR | MY_UNPACK_FILENAME |
519
519
  }
520
520
  else
521
521
  {
522
 
    char *iext= strrchr(name, '.');
 
522
    char *iext= strrchr((char *)name, '.');
523
523
    int have_iext= iext && !strcmp(iext, MI_NAME_IEXT);
524
524
    fn_format(filename, name, "", MI_NAME_IEXT,
525
525
              MY_UNPACK_FILENAME | MY_RETURN_REAL_PATH |
558
558
    {
559
559
      if (ci->data_file_name)
560
560
      {
561
 
        char *dext= strrchr(ci->data_file_name, '.');
 
561
        char *dext= strrchr((char *)ci->data_file_name, '.');
562
562
        int have_dext= dext && !strcmp(dext, MI_NAME_DEXT);
563
563
 
564
564
        if (options & HA_OPTION_TMP_TABLE)
565
565
        {
566
566
          char *path;
567
567
          /* chop off the table name, tempory tables use generated name */
568
 
          if ((path= strrchr(ci->data_file_name, FN_LIBCHAR)))
 
568
          if ((path= strrchr((char *)ci->data_file_name, FN_LIBCHAR)))
569
569
            *path= '\0';
570
570
          fn_format(filename, name, ci->data_file_name, MI_NAME_DEXT,
571
571
                    MY_REPLACE_DIR | MY_UNPACK_FILENAME | MY_APPEND_EXT);