summaryrefslogtreecommitdiffstats
path: root/common/mem.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-05-21 10:51:03 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:42 +0100
commit41171d081d821278e002b3699517bf3a177046ff (patch)
tree134b69b01f839426639edc8e34013c6a96049b0d /common/mem.h
parent4640fbccf6011cb7570fb4a976789aec1895152e (diff)
downloadspice-common-41171d081d821278e002b3699517bf3a177046ff.tar.gz
spice-common-41171d081d821278e002b3699517bf3a177046ff.tar.xz
spice-common-41171d081d821278e002b3699517bf3a177046ff.zip
Fix spelling errors in comments and strings
Diffstat (limited to 'common/mem.h')
-rw-r--r--common/mem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/mem.h b/common/mem.h
index 83fbeb3..2087760 100644
--- a/common/mem.h
+++ b/common/mem.h
@@ -33,7 +33,7 @@ void *spice_malloc_n_m(size_t n_blocks, size_t n_block_bytes, size_t extra_size)
void *spice_malloc0_n(size_t n_blocks, size_t n_block_bytes) SPICE_GNUC_MALLOC SPICE_GNUC_ALLOC_SIZE2(1,2);
void *spice_realloc_n(void *mem, size_t n_blocks, size_t n_block_bytes) SPICE_GNUC_WARN_UNUSED_RESULT;
-/* Optimise: avoid the call to the (slower) _n function if we can
+/* Optimize: avoid the call to the (slower) _n function if we can
* determine at compile-time that no overflow happens.
*/
#if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__)
@@ -67,7 +67,7 @@ void *spice_realloc_n(void *mem, size_t n_blocks, size_t n_block_bytes) SPICE_GN
}))
#else
-/* Unoptimised version: always call the _n() function. */
+/* Unoptimized version: always call the _n() function. */
#define _SPICE_NEW(struct_type, n_structs, func) \
((struct_type *) spice_##func##_n ((n_structs), sizeof (struct_type)))