aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-09-17 20:58:22 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-09-17 20:58:22 +0200
commit7373759947ac54e9a9b3b1a26572cca5cdc9a0e6 (patch)
treed2e9da2955a8eac11cc27e0dd8433b13ac84999e /findutils/grep.c
parent7bc3d39695728c6257a95bc2d75e80d3e2431c8b (diff)
downloadbusybox-w32-7373759947ac54e9a9b3b1a26572cca5cdc9a0e6.tar.gz
busybox-w32-7373759947ac54e9a9b3b1a26572cca5cdc9a0e6.tar.bz2
busybox-w32-7373759947ac54e9a9b3b1a26572cca5cdc9a0e6.zip
fix "aloc" -> "alloc" typos
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 7e0120ba2..1fa605f6f 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -247,7 +247,7 @@ typedef struct grep_list_data_t {
247#endif 247#endif
248#define ALLOCATED 1 248#define ALLOCATED 1
249#define COMPILED 2 249#define COMPILED 2
250 int flg_mem_alocated_compiled; 250 int flg_mem_allocated_compiled;
251} grep_list_data_t; 251} grep_list_data_t;
252 252
253#if !ENABLE_EXTRA_COMPAT 253#if !ENABLE_EXTRA_COMPAT
@@ -380,8 +380,8 @@ static int grep_file(FILE *file)
380#endif 380#endif
381 char *match_at; 381 char *match_at;
382 382
383 if (!(gl->flg_mem_alocated_compiled & COMPILED)) { 383 if (!(gl->flg_mem_allocated_compiled & COMPILED)) {
384 gl->flg_mem_alocated_compiled |= COMPILED; 384 gl->flg_mem_allocated_compiled |= COMPILED;
385#if !ENABLE_EXTRA_COMPAT 385#if !ENABLE_EXTRA_COMPAT
386 xregcomp(&gl->compiled_regex, gl->pattern, reflags); 386 xregcomp(&gl->compiled_regex, gl->pattern, reflags);
387#else 387#else
@@ -619,9 +619,9 @@ static char *add_grep_list_data(char *pattern)
619 grep_list_data_t *gl = xzalloc(sizeof(*gl)); 619 grep_list_data_t *gl = xzalloc(sizeof(*gl));
620 gl->pattern = pattern; 620 gl->pattern = pattern;
621#if ENABLE_FEATURE_CLEAN_UP 621#if ENABLE_FEATURE_CLEAN_UP
622 gl->flg_mem_alocated_compiled = flg_used_mem; 622 gl->flg_mem_allocated_compiled = flg_used_mem;
623#else 623#else
624 /*gl->flg_mem_alocated_compiled = 0;*/ 624 /*gl->flg_mem_allocated_compiled = 0;*/
625#endif 625#endif
626 return (char *)gl; 626 return (char *)gl;
627} 627}
@@ -837,9 +837,9 @@ int grep_main(int argc UNUSED_PARAM, char **argv)
837 grep_list_data_t *gl = (grep_list_data_t *)pattern_head_ptr->data; 837 grep_list_data_t *gl = (grep_list_data_t *)pattern_head_ptr->data;
838 838
839 pattern_head = pattern_head->link; 839 pattern_head = pattern_head->link;
840 if (gl->flg_mem_alocated_compiled & ALLOCATED) 840 if (gl->flg_mem_allocated_compiled & ALLOCATED)
841 free(gl->pattern); 841 free(gl->pattern);
842 if (gl->flg_mem_alocated_compiled & COMPILED) 842 if (gl->flg_mem_allocated_compiled & COMPILED)
843 regfree(&gl->compiled_regex); 843 regfree(&gl->compiled_regex);
844 free(gl); 844 free(gl);
845 free(pattern_head_ptr); 845 free(pattern_head_ptr);