util: fix comment typos
authorWei Jiangang <weijg.fnst@cn.fujitsu.com>
Mon, 14 Mar 2016 09:58:29 +0000 (17:58 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 18 May 2016 12:04:27 +0000 (15:04 +0300)
Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/buffer.c
util/qemu-sockets.c

index a6118bf5b25fbb50fcddfba7cb71d2fc80b02982..33e94d172f14242462a5d14510d6d81058d28bf7 100644 (file)
@@ -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);
 }
index 2a2c5243a1c46e408b6db7e5390198e128106f0b..0d6cd1f4ef89b766a2fea6db28d1a664b962a9fd 100644 (file)
@@ -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