~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysqldump.c

  • Committer: Brian Aker
  • Date: 2008-07-05 19:24:24 UTC
  • mfrom: (53.2.8 codestyle)
  • Revision ID: brian@tangent.org-20080705192424-3uslywtteymm7xqy
First pass of removing BIT_TYPE

Show diffs side-by-side

added added

removed removed

Lines of Context:
487
487
static int init_dumping_tables(char *);
488
488
static int init_dumping(char *, int init_func(char*));
489
489
static int dump_databases(char **);
490
 
static int dump_all_databases();
 
490
static int dump_all_databases(void);
491
491
static char *quote_name(const char *name, char *buff, my_bool force);
492
492
char check_if_ignore_table(const char *table_name, char *table_type);
493
493
static char *primary_key_fields(const char *table_name);
526
526
    file        - checked file
527
527
*/
528
528
 
529
 
void check_io(FILE *file)
 
529
static void check_io(FILE *file)
530
530
{
531
531
  if (ferror(file))
532
532
    die(EX_EOF, "Got errno %d on write", errno);
674
674
}
675
675
 
676
676
 
677
 
uchar* get_table_key(const char *entry, size_t *length,
678
 
                     my_bool not_used __attribute__((unused)))
 
677
static uchar* get_table_key(const char *entry, size_t *length,
 
678
                            my_bool not_used __attribute__((unused)))
679
679
{
680
680
  *length= strlen(entry);
681
681
  return (uchar*) entry;
1086
1086
}
1087
1087
 
1088
1088
 
1089
 
static void free_resources()
 
1089
static void free_resources(void)
1090
1090
{
1091
1091
  if (md_result_file && md_result_file != stdout)
1092
1092
    my_fclose(md_result_file, MYF(0));
2731
2731
 
2732
2732
/* Return 1 if we should copy the table */
2733
2733
 
2734
 
my_bool include_table(const uchar *hash_key, size_t len)
 
2734
static my_bool include_table(const uchar *hash_key, size_t len)
2735
2735
{
2736
2736
  return !hash_search(&ignore_table, hash_key, len);
2737
2737
}
3496
3496
  exit_code= get_options(&argc, &argv);
3497
3497
  if (exit_code)
3498
3498
  {
3499
 
    free_resources(0);
 
3499
    free_resources();
3500
3500
    exit(exit_code);
3501
3501
  }
3502
3502
 
3504
3504
  {
3505
3505
    if(!(stderror_file= freopen(log_error_file, "a+", stderr)))
3506
3506
    {
3507
 
      free_resources(0);
 
3507
      free_resources();
3508
3508
      exit(EX_MYSQLERR);
3509
3509
    }
3510
3510
  }
3511
3511
 
3512
3512
  if (connect_to_db(current_host, current_user, opt_password))
3513
3513
  {
3514
 
    free_resources(0);
 
3514
    free_resources();
3515
3515
    exit(EX_MYSQLERR);
3516
3516
  }
3517
3517
  if (!path)