From patchwork Wed May 18 12:06:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 9118541 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 17AFBBF29F for ; Wed, 18 May 2016 12:34:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7595720165 for ; Wed, 18 May 2016 12:34:23 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9297420154 for ; Wed, 18 May 2016 12:34:21 +0000 (UTC) Received: from localhost ([::1]:44662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b30g8-0000WL-Mc for patchwork-qemu-devel@patchwork.kernel.org; Wed, 18 May 2016 08:34:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b30Wc-0000l4-FN for qemu-devel@nongnu.org; Wed, 18 May 2016 08:24:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b30WT-0005hF-Ch for qemu-devel@nongnu.org; Wed, 18 May 2016 08:24:29 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:45348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b30WT-0005gh-4T; Wed, 18 May 2016 08:24:21 -0400 Received: from tsrv.tls.msk.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 2F103417A6; Wed, 18 May 2016 15:24:17 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.tls.msk.ru (Postfix) with SMTP id CEDF2ADA; Wed, 18 May 2016 15:06:10 +0300 (MSK) Received: (nullmailer pid 12394 invoked by uid 1000); Wed, 18 May 2016 12:06:09 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Wed, 18 May 2016 15:06:02 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.62.121.231 Subject: [Qemu-devel] [PULL 07/13] util: fix comment typos X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Michael Tokarev , Wei Jiangang Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Jiangang Signed-off-by: Wei Jiangang Reviewed-by: Eric Blake Signed-off-by: Michael Tokarev --- 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