diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-23 17:16:29 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-23 17:16:29 -0300 |
commit | 75e22123972f3404cd384839695c9e7b0165565f (patch) | |
tree | 6e64b324e47ec067c848617b8ea8340fde01d8b2 /extra/replace.c | |
parent | 7a344b61065080902ad9530d33ed0fa72a1522fa (diff) | |
download | mariadb-git-75e22123972f3404cd384839695c9e7b0165565f.tar.gz |
WL#5498: Remove dead and unused source code
Remove unused macros or macro which are always defined.
include/my_global.h:
Remove unused macros and move macros which aren't used globally.
Diffstat (limited to 'extra/replace.c')
-rw-r--r-- | extra/replace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/replace.c b/extra/replace.c index 5b5f9cee6f8..2ce374726eb 100644 --- a/extra/replace.c +++ b/extra/replace.c @@ -51,7 +51,7 @@ typedef struct st_pointer_array { /* when using array-strings */ TYPELIB typelib; /* Pointer to strings */ uchar *str; /* Strings is here */ - int7 *flag; /* Flag about each var. */ + uint8 *flag; /* Flag about each var. */ uint array_allocs,max_count,length,max_length; } POINTER_ARRAY; @@ -266,7 +266,7 @@ static int insert_pointer_name(reg1 POINTER_ARRAY *pa,char * name) } pa->max_count=(PC_MALLOC-MALLOC_OVERHEAD)/(sizeof(uchar*)+ sizeof(*pa->flag)); - pa->flag= (int7*) (pa->typelib.type_names+pa->max_count); + pa->flag= (uint8*) (pa->typelib.type_names+pa->max_count); pa->length=0; pa->max_length=PS_MALLOC-MALLOC_OVERHEAD; pa->array_allocs=1; @@ -303,7 +303,7 @@ static int insert_pointer_name(reg1 POINTER_ARRAY *pa,char * name) pa->typelib.type_names=new_array; old_count=pa->max_count; pa->max_count=len/(sizeof(uchar*) + sizeof(*pa->flag)); - pa->flag= (int7*) (pa->typelib.type_names+pa->max_count); + pa->flag= (uint8*) (pa->typelib.type_names+pa->max_count); memcpy((uchar*) pa->flag,(char *) (pa->typelib.type_names+old_count), old_count*sizeof(*pa->flag)); } |