diff options
author | Denys Vlasenko | 2016-09-17 20:58:22 +0200 |
---|---|---|
committer | Denys Vlasenko | 2016-09-17 20:58:22 +0200 |
commit | 7373759947ac54e9a9b3b1a26572cca5cdc9a0e6 (patch) | |
tree | d2e9da2955a8eac11cc27e0dd8433b13ac84999e /findutils | |
parent | 7bc3d39695728c6257a95bc2d75e80d3e2431c8b (diff) | |
download | busybox-7373759947ac54e9a9b3b1a26572cca5cdc9a0e6.zip busybox-7373759947ac54e9a9b3b1a26572cca5cdc9a0e6.tar.gz |
fix "aloc" -> "alloc" typos
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/grep.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 7e0120b..1fa605f 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -247,7 +247,7 @@ typedef struct grep_list_data_t { #endif #define ALLOCATED 1 #define COMPILED 2 - int flg_mem_alocated_compiled; + int flg_mem_allocated_compiled; } grep_list_data_t; #if !ENABLE_EXTRA_COMPAT @@ -380,8 +380,8 @@ static int grep_file(FILE *file) #endif char *match_at; - if (!(gl->flg_mem_alocated_compiled & COMPILED)) { - gl->flg_mem_alocated_compiled |= COMPILED; + if (!(gl->flg_mem_allocated_compiled & COMPILED)) { + gl->flg_mem_allocated_compiled |= COMPILED; #if !ENABLE_EXTRA_COMPAT xregcomp(&gl->compiled_regex, gl->pattern, reflags); #else @@ -619,9 +619,9 @@ static char *add_grep_list_data(char *pattern) grep_list_data_t *gl = xzalloc(sizeof(*gl)); gl->pattern = pattern; #if ENABLE_FEATURE_CLEAN_UP - gl->flg_mem_alocated_compiled = flg_used_mem; + gl->flg_mem_allocated_compiled = flg_used_mem; #else - /*gl->flg_mem_alocated_compiled = 0;*/ + /*gl->flg_mem_allocated_compiled = 0;*/ #endif return (char *)gl; } @@ -837,9 +837,9 @@ int grep_main(int argc UNUSED_PARAM, char **argv) grep_list_data_t *gl = (grep_list_data_t *)pattern_head_ptr->data; pattern_head = pattern_head->link; - if (gl->flg_mem_alocated_compiled & ALLOCATED) + if (gl->flg_mem_allocated_compiled & ALLOCATED) free(gl->pattern); - if (gl->flg_mem_alocated_compiled & COMPILED) + if (gl->flg_mem_allocated_compiled & COMPILED) regfree(&gl->compiled_regex); free(gl); free(pattern_head_ptr); |