aboutsummaryrefslogtreecommitdiff
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
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>
-rw-r--r--coreutils/expr.c4
-rw-r--r--findutils/grep.c14
-rw-r--r--shell/ash.c2
3 files changed, 10 insertions, 10 deletions
diff --git a/coreutils/expr.c b/coreutils/expr.c
index ce6b2d189..efc435443 100644
--- a/coreutils/expr.c
+++ b/coreutils/expr.c
@@ -114,7 +114,7 @@ static VALUE *int_value(arith_t i)
114 VALUE *v; 114 VALUE *v;
115 115
116 v = xzalloc(sizeof(VALUE)); 116 v = xzalloc(sizeof(VALUE));
117 if (INTEGER) /* otherwise xzaaloc did it already */ 117 if (INTEGER) /* otherwise xzalloc did it already */
118 v->type = INTEGER; 118 v->type = INTEGER;
119 v->u.i = i; 119 v->u.i = i;
120 return v; 120 return v;
@@ -127,7 +127,7 @@ static VALUE *str_value(const char *s)
127 VALUE *v; 127 VALUE *v;
128 128
129 v = xzalloc(sizeof(VALUE)); 129 v = xzalloc(sizeof(VALUE));
130 if (STRING) /* otherwise xzaaloc did it already */ 130 if (STRING) /* otherwise xzalloc did it already */
131 v->type = STRING; 131 v->type = STRING;
132 v->u.s = xstrdup(s); 132 v->u.s = xstrdup(s);
133 return v; 133 return v;
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);
diff --git a/shell/ash.c b/shell/ash.c
index 790367bd8..bffb4a245 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11663,7 +11663,7 @@ parsebackq: {
11663 * FIXME: this can allocate very large block on stack and SEGV. 11663 * FIXME: this can allocate very large block on stack and SEGV.
11664 * Example: 11664 * Example:
11665 * echo "..<100kbytes>..`true` $(true) `true` ..." 11665 * echo "..<100kbytes>..`true` $(true) `true` ..."
11666 * alocates 100kb for every command subst. With about 11666 * allocates 100kb for every command subst. With about
11667 * a hundred command substitutions stack overflows. 11667 * a hundred command substitutions stack overflows.
11668 * With larger prepended string, SEGV happens sooner. 11668 * With larger prepended string, SEGV happens sooner.
11669 */ 11669 */