summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Hards <bradh@frogmouth.net>2011-01-16 17:15:32 +1100
committerRusty Russell <rusty@rustcorp.com.au>2011-01-17 16:28:53 +1030
commitd79a327642580df2707082c32ce5370bb517e18c (patch)
tree9792a9d95b5d1973c1a2ceb982c11c133956bbc3
parent737eacb13ce9550f9820cbc55eec8b38fa2fa6a4 (diff)
array: spelling fixes.
-rw-r--r--ccan/array/array.c2
-rw-r--r--ccan/array/array.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ccan/array/array.c b/ccan/array/array.c
index 3d810471..5edc2ce6 100644
--- a/ccan/array/array.c
+++ b/ccan/array/array.c
@@ -6,7 +6,7 @@ int array_alias_helper(const void *a, const void *b) {
return 0;
}
-//grows the allocated size to accomodate the size
+//grows the allocated size to accommodate the size
void array_resize_helper(array_char *a, size_t itemSize) {
a->alloc = (a->size+63)&~63;
#ifndef ARRAY_USE_TALLOC
diff --git a/ccan/array/array.h b/ccan/array/array.h
index fb470135..007c51b8 100644
--- a/ccan/array/array.h
+++ b/ccan/array/array.h
@@ -126,7 +126,7 @@ array_growalloc(array, newAlloc) sees if the array can currently hold newAlloc i
if not, it increases the alloc to satisfy this requirement, allocating slack
space to avoid having to reallocate for every size increment.
-array_from_string(array, str) copys a string to an array_char.
+array_from_string(array, str) copies a string to an array_char.
array_push(array, item) pushes an item to the end of the array.
array_pop_nocheck(array) pops it back out. Be sure there is at least one item in the array before calling.