Skip to content

Commit 97d8280

Browse files
committed
Fix clang -Wtypedef-redefinition
This fixes commit 77c184d.
1 parent 9047a90 commit 97d8280

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

storage/maria/ma_check.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (C) 2019 MariaDB Corporation AB
1+
/* Copyright (C) 2019, 2022, MariaDB Corporation AB
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -20,17 +20,17 @@
2020
in myisamchk.h
2121
*/
2222

23-
typedef struct st_sort_key_blocks /* Used when sorting */
23+
struct st_sort_key_blocks /* Used when sorting */
2424
{
2525
uchar *buff, *end_pos;
2626
uchar lastkey[MARIA_MAX_POSSIBLE_KEY_BUFF];
2727
uint last_length;
2828
int inited;
29-
} MA_SORT_KEY_BLOCKS;
29+
};
3030

31-
typedef struct st_sort_ftbuf
31+
struct st_sort_ftbuf
3232
{
3333
uchar *buf, *end;
3434
int count;
3535
uchar lastkey[MARIA_MAX_KEY_BUFF];
36-
} MA_SORT_FT_BUF;
36+
};

storage/maria/maria_def.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,21 @@ struct st_maria_share;
150150
struct st_maria_handler; /* For referense */
151151
struct st_maria_keydef;
152152

153-
typedef struct st_maria_key /* Internal info about a key */
153+
struct st_maria_key /* Internal info about a key */
154154
{
155155
uchar *data; /* Data for key */
156156
struct st_maria_keydef *keyinfo; /* Definition for key */
157157
uint data_length; /* Length of key data */
158158
uint ref_length; /* record ref + transid */
159159
uint32 flag; /* 0 or SEARCH_PART_KEY */
160-
} MARIA_KEY;
160+
};
161161

162-
typedef struct st_maria_decode_tree /* Decode huff-table */
162+
struct st_maria_decode_tree /* Decode huff-table */
163163
{
164164
uint16 *table;
165165
uint quick_table_bits;
166166
uchar *intervalls;
167-
} MARIA_DECODE_TREE;
167+
};
168168

169169

170170
typedef struct s3_info S3_INFO;

storage/maria/s3_func.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef S3_FUNC_INCLUDED
22
#define S3_FUNC_INCLUDED
3-
/* Copyright (C) 2019, 2020 MariaDB Corporation Ab
3+
/* Copyright (C) 2019, 2022, MariaDB Corporation Ab
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -41,7 +41,7 @@ extern TYPELIB s3_protocol_typelib;
4141

4242
/* Store information about a s3 connection */
4343

44-
typedef struct s3_info
44+
struct s3_info
4545
{
4646
/* Connection strings */
4747
LEX_CSTRING access_key, secret_key, region, bucket, host_name;
@@ -63,7 +63,7 @@ typedef struct s3_info
6363

6464
/* Protocol for the list bucket API call. 1 for Amazon, 2 for some others */
6565
uint8_t protocol_version;
66-
} S3_INFO;
66+
};
6767

6868

6969
/* flag + length is stored in this header */

storage/myisam/myisamdef.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2000, 2012, Oracle and/or its affiliates.
3-
Copyright (c) 2017, MariaDB Corporation.
3+
Copyright (c) 2017, 2022, MariaDB Corporation.
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -613,21 +613,21 @@ typedef struct st_mi_block_info /* Parameter to _mi_get_block_info */
613613
} MI_BLOCK_INFO;
614614

615615

616-
typedef struct st_sort_key_blocks /* Used when sorting */
616+
struct st_sort_key_blocks /* Used when sorting */
617617
{
618618
uchar *buff, *end_pos;
619619
uchar lastkey[HA_MAX_POSSIBLE_KEY_BUFF];
620620
uint last_length;
621621
int inited;
622-
} SORT_KEY_BLOCKS;
622+
};
623623

624624

625-
typedef struct st_sort_ftbuf
625+
struct st_sort_ftbuf
626626
{
627627
uchar *buf, *end;
628628
int count;
629629
uchar lastkey[HA_MAX_KEY_BUFF];
630-
} SORT_FT_BUF;
630+
};
631631

632632
/* bits in return from _mi_get_block_info */
633633

0 commit comments

Comments
 (0)