[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 07/13] util: fix comment typos
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL 07/13] util: fix comment typos |
Date: |
Wed, 18 May 2016 15:06:02 +0300 |
From: Wei Jiangang <address@hidden>
Signed-off-by: Wei Jiangang <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
util/buffer.c | 4 ++--
util/qemu-sockets.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/util/buffer.c b/util/buffer.c
index a6118bf..33e94d1 100644
--- a/util/buffer.c
+++ b/util/buffer.c
@@ -25,7 +25,7 @@
#define BUFFER_MIN_INIT_SIZE 4096
#define BUFFER_MIN_SHRINK_SIZE 65536
-/* define the factor alpha for the expentional smoothing
+/* define the factor alpha for the exponential smoothing
* that is used in the average size calculation. a shift
* of 7 results in an alpha of 1/2^7. */
#define BUFFER_AVG_SIZE_SHIFT 7
@@ -45,7 +45,7 @@ static void buffer_adj_size(Buffer *buffer, size_t len)
old, buffer->capacity);
/* make it even harder for the buffer to shrink, reset average size
- * to currenty capacity if it is larger than the average. */
+ * to current capacity if it is larger than the average. */
buffer->avg_size = MAX(buffer->avg_size,
buffer->capacity << BUFFER_AVG_SIZE_SHIFT);
}
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
index 2a2c524..0d6cd1f 100644
--- a/util/qemu-sockets.c
+++ b/util/qemu-sockets.c
@@ -93,7 +93,7 @@ NetworkAddressFamily inet_netfamily(int family)
* t f PF_INET
* t t PF_INET6
*
- * NB, this matrix is only about getting the neccessary results
+ * NB, this matrix is only about getting the necessary results
* from getaddrinfo(). Some of the cases require further work
* after reading results from getaddrinfo in order to fully
* apply the logic the end user wants. eg with the last case
--
2.1.4
- [Qemu-trivial] [PULL 13/13] Fix some typos found by codespell, (continued)
- [Qemu-trivial] [PULL 13/13] Fix some typos found by codespell, Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 04/13] vl: fix comment about when parsing cpu definitions, Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 05/13] Fix typo in variable name (found and fixed by codespell), Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 12/13] 9p: drop unused declaration from coth.h, Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 06/13] qdict: fix unbounded stack warning for qdict_array_entries, Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 10/13] accel: make configure_accelerator return void, Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 02/13] remove comment for nonexistent structure member, Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 03/13] loader: fix potential memory leak, Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 01/13] s390: remove misleading comment, Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 09/13] configure: Use uniform description for devel packages, Michael Tokarev, 2016/05/18
- [Qemu-trivial] [PULL 07/13] util: fix comment typos,
Michael Tokarev <=
- Re: [Qemu-trivial] [Qemu-devel] [PULL 00/13] Trivial patches for 2016-05-18, Peter Maydell, 2016/05/19