~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzlecheck.c

Removed references to strmov and strnmov

Show diffs side-by-side

added added

removed removed

Lines of Context:
599
599
  switch (what_to_do) {
600
600
  case DO_CHECK:
601
601
    op = "CHECK";
602
 
    if (opt_quick)              end = strmov(end, " QUICK");
603
 
    if (opt_fast)               end = strmov(end, " FAST");
604
 
    if (opt_medium_check)       end = strmov(end, " MEDIUM"); /* Default */
605
 
    if (opt_extended)           end = strmov(end, " EXTENDED");
606
 
    if (opt_check_only_changed) end = strmov(end, " CHANGED");
607
 
    if (opt_upgrade)            end = strmov(end, " FOR UPGRADE");
 
602
    if (opt_quick)              end = stpcpy(end, " QUICK");
 
603
    if (opt_fast)               end = stpcpy(end, " FAST");
 
604
    if (opt_medium_check)       end = stpcpy(end, " MEDIUM"); /* Default */
 
605
    if (opt_extended)           end = stpcpy(end, " EXTENDED");
 
606
    if (opt_check_only_changed) end = stpcpy(end, " CHANGED");
 
607
    if (opt_upgrade)            end = stpcpy(end, " FOR UPGRADE");
608
608
    break;
609
609
  case DO_REPAIR:
610
610
    op= (opt_write_binlog) ? "REPAIR" : "REPAIR NO_WRITE_TO_BINLOG";
611
 
    if (opt_quick)              end = strmov(end, " QUICK");
612
 
    if (opt_extended)           end = strmov(end, " EXTENDED");
613
 
    if (opt_frm)                end = strmov(end, " USE_FRM");
 
611
    if (opt_quick)              end = stpcpy(end, " QUICK");
 
612
    if (opt_extended)           end = stpcpy(end, " EXTENDED");
 
613
    if (opt_frm)                end = stpcpy(end, " USE_FRM");
614
614
    break;
615
615
  case DO_ANALYZE:
616
616
    op= (opt_write_binlog) ? "ANALYZE" : "ANALYZE NO_WRITE_TO_BINLOG";
633
633
  {
634
634
    char *ptr;
635
635
 
636
 
    ptr= strmov(strmov(query, op), " TABLE ");
 
636
    ptr= stpcpy(stpcpy(query, op), " TABLE ");
637
637
    ptr= fix_table_name(ptr, tables);
638
638
    ptr= strxmov(ptr, " ", options, NullS);
639
639
    query_length= (uint) (ptr - query);
690
690
    }
691
691
    else
692
692
      printf("%-9s: %s", row[2], row[3]);
693
 
    strmov(prev, row[0]);
 
693
    stpcpy(prev, row[0]);
694
694
    putchar('\n');
695
695
  }
696
696
  /* add the last table to be repaired to the list */