From patchwork Fri Oct 20 20:48:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Kalashnikov X-Patchwork-Id: 828795 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:400c:c0c::23f; helo=mail-wr0-x23f.google.com; envelope-from=swupdate+bncbd7ivpnd34mbbggcvhhqkgqe3o6ooka@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="Z95PieVj"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="O1pSBMx1"; dkim-atps=neutral Received: from mail-wr0-x23f.google.com (mail-wr0-x23f.google.com [IPv6:2a00:1450:400c:c0c::23f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yJdDW3Npsz9t43 for ; Sat, 21 Oct 2017 07:48:27 +1100 (AEDT) Received: by mail-wr0-x23f.google.com with SMTP id 4sf1582219wrt.8 for ; Fri, 20 Oct 2017 13:48:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1508532504; cv=pass; d=google.com; s=arc-20160816; b=D7KcFpGKT3i3ptioAtNYJPyGLu4qXisAwxWXoXkhBID10INKBo04a4/Jobr62KDIzg o54E9xJgR4oMeT3Qbe5jlgFqdOazAtVzIN7hfth8xIdrQoWsSszApGXr3ZnWjk9w3t6E BQGXBzgjkXH5BwpVmBUjRevaNWXZGAf8w3WTwyr5qVZAQlzqWlafKGTtupOSB63CldiK N3TtG5OYvm4HIPBZcIIUhXxHtS+/thi+n12pPqSOyCMROOAoQV8nanWvK4NUyPN8qDBt P7AUigZy9oO8JB7rr68+7BwRxvoHe/h9YmA4MrqcXHuTuD4+2p9+7bmyK518hO0Vhouc qP9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:to:subject:message-id:date:from :mime-version:arc-authentication-results:arc-message-signature :sender:dkim-signature:dkim-signature:arc-authentication-results; bh=psW35+b2I3XNlNq1KDg6QQmGkf6GAp74kacv0cX3Iek=; b=zBAKgXKqwR+1Pz1uHo3Me3F3XF1Hoo229hNZMqHNNLVL5NPH4SwuZ+5BLYbUFrdylz f4sFh8Yd76DBUi+4hOxTbvSv4Tj0u+DSsUGwgfPJeIsq3Ms69YvUQs42mmq/GTJZxp+l QLHFM6/KzkFbNZmL85hpTsLfTg6ECSzlxONxFTM2OOFoyWIbfFL2QdlMwUkKspIyxaxA T/z5stvsoaLG6RHMglWzbhLzhVEPrRk3TuwS4rV21XWGbLZX19WbjuC5BsnLhm331g03 qu/l8NisX27AfAYM2DYlcXf+9QUFAmNyvXKPpLfhVIRwSn/6iOe9yDU28cxg61h+ar9k ClMQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jXK1vlV4; spf=pass (google.com: domain of lunix0x@gmail.com designates 2a00:1450:400c:c0c::229 as permitted sender) smtp.mailfrom=lunix0x@gmail.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=psW35+b2I3XNlNq1KDg6QQmGkf6GAp74kacv0cX3Iek=; b=Z95PieVjLgmaWyeEaTCT6WRzFi7/FKjDVkoThFs1J3Aqq8trBqgGzH3zIesU+tWb5i X3PcHUrz/GWpcv8qGPHYUuwQbM3YyFctxZYD83fKYCgabv6mkTHU5TFj4xdK5DLhadJR c4Lf6HO8PSWj9mO3AfjIRUvr3Whui0iV2/Z/lGIKbhydL89by1pV/3+0dhEKJrtK/OPF Yw2Kl//aT4RhqgL8lPGm90DP7yT3wpJNwBusjPaSNwc8BpiGXIBhiYV6N2JDOmGAGMF7 V5Fig11QhhWkU2K5/TLq/iNdoI5OVSwInv6dzhX74arpw4aWUbgFUyxnyryeSotZj8Q8 dW0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=psW35+b2I3XNlNq1KDg6QQmGkf6GAp74kacv0cX3Iek=; b=O1pSBMx1cTt1hv33IAmkSTkcK3Hwz2mmhRDTWVdhZVjBejMQDo2DVSrW5tQ4Wne6Mg PjuoWs0uzD/BaNdIoKXUM5v4oSBKqdxBJBAgrRgRbQpcaAbpJ/G+GnQrSM+MXofYEvHw wH9lJDWX9tYOC7N+t6ehwYOJ3gHZIoliy0ERnXOKaStHjvjDqnHmqlspoMSFGU6fkRNH gzJHq5hBLZquKIH1dcnEMhqc4d5AB46K7bwdfwfZvqsWaQauTWFuiX8r8LgELCQwHBYT 7/pkxJ920Sui3yx3DsD9cos6gURKUJtnMA8XtHj9A91VniFrZBBYTuRN9NVR9MmpilNB BwMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:date:message-id:subject :to:x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=psW35+b2I3XNlNq1KDg6QQmGkf6GAp74kacv0cX3Iek=; b=g3VdzWdIBdpILX0lFzzqqhB+SyQL+8SKWOIAHzrwL3Q+saPsBlKk072hUwJR7vNSsA u9omXIAJxQW8k1ckdPQ/QX5moC8kHQiUQIwBBCW9f0X5+8oCTqk8F4BeLrwGeavbUZ1M gQef3TAOvw04fXpKOG/+aAhcu7Da4cAYAMkLBX//pUHfTfevNCm6MhxuPwAC3fZVNuxr GbGF/suFRhLWHWchRHwrW1ZItYxEhjItYjPq+/Q+P62QmZtWhKOR4aJid5oADpYS7rA2 etkCtB2saUw+TVHq+Ptyn4kH9pbs+X3PbzptaROsQuuU3QRA5CmLfWDbYp29zqQLCbfO bpkA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AMCzsaVUmRXPnALy5yaZoOOiz7F206bR6cp51NFCxH1/q+7/en1/Ma5F 3PUwZh2ea9negibpguQGKs0= X-Google-Smtp-Source: ABhQp+SnOQaoifanx+ac5q1vQvQEayasKocvGiEjcZrAdo11S8c28fJGNpbUpgqRGENXIZqaNIvhrg== X-Received: by 10.28.188.132 with SMTP id m126mr1074wmf.2.1508532504868; Fri, 20 Oct 2017 13:48:24 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 10.80.219.194 with SMTP id s2ls4460524edk.5.gmail; Fri, 20 Oct 2017 13:48:24 -0700 (PDT) X-Received: by 10.80.136.74 with SMTP id c10mr1287837edc.1.1508532504385; Fri, 20 Oct 2017 13:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508532504; cv=none; d=google.com; s=arc-20160816; b=p7Dc3eeoipqt3gSSvsqDO6ZKAyzSMKHO6Q09u0BLBBIrKIFwC0qDaoecyWCYXIlwaK vDremifGFzWceaxoB+vA517eRkJwRW0eVwqeCkhfAiyzfaeTDvTUGT0rkiaahVrm4NxL 4OrrqzyrdHHq0GnNlOYWcKLrdV2n/qIs0ItUff+6zSaDypV+VpbCQuOnHB4G38aD29bt uOWXG5eXFwkI9rHafGt/6ezX4MjwbpycbdR99zkmIj4U1FymwZcXj/pgdQ63iI+fD6a+ wN4U5QLPnj+c6iIIiw4+fi1GbqdrNzL2GqvF8jiZ50LNZaSJcqo9tLNXy9DAbh+UnuiD uFbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature :arc-authentication-results; bh=FalAZd3KVUhXbihrXP4WXDqd8HWgzgNbZlXN/c1pwBQ=; b=IrSSMKe/1FwNUNjAOGapL+PLHvt+XMT1zxnp8xooP2ZDOlI7YO9roJK1OaFOY+ec86 oS9hpN/ZgrHjIudjb6CJjLPO7td5SVLXiyZCePHj3HjMyrq1CDl4Mqro9UmFPvc8Nh20 v9XDI31xRf1cDtaDdaK0d3smttsSSfGATO3HacHOSFhaAJ9IgIh+UrpW5Y8aZYfB1F0U n6z5W9/NQP/AZSZb7dEvsgbbnO49vdOImQ3Z025ByRtGCS0LvLeErhdReHOj9ts5Tq6W Ub2UIeujtUXYrnR4YIgNnjITz6NY1xdeM0d+Q0z8ZNE1nSXqgkPKVjfGdMYAKLxrjFS2 EAxw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jXK1vlV4; spf=pass (google.com: domain of lunix0x@gmail.com designates 2a00:1450:400c:c0c::229 as permitted sender) smtp.mailfrom=lunix0x@gmail.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com. [2a00:1450:400c:c0c::229]) by gmr-mx.google.com with ESMTPS id h38si50314edb.1.2017.10.20.13.48.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Oct 2017 13:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of lunix0x@gmail.com designates 2a00:1450:400c:c0c::229 as permitted sender) client-ip=2a00:1450:400c:c0c::229; Received: by mail-wr0-x229.google.com with SMTP id o44so12327915wrf.11 for ; Fri, 20 Oct 2017 13:48:24 -0700 (PDT) X-Received: by 10.223.160.77 with SMTP id l13mr2122903wrl.43.1508532503925; Fri, 20 Oct 2017 13:48:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.1.67 with HTTP; Fri, 20 Oct 2017 13:48:23 -0700 (PDT) From: Roman Kalashnikov Date: Fri, 20 Oct 2017 23:48:23 +0300 Message-ID: Subject: [swupdate] [PATCH 2/2] Fix types mistmatch To: swupdate X-Original-Sender: lunix0x@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jXK1vlV4; spf=pass (google.com: domain of lunix0x@gmail.com designates 2a00:1450:400c:c0c::229 as permitted sender) smtp.mailfrom=lunix0x@gmail.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From: Roman Kalashnikov Signed-off-by: Roman Kalashnikov --- archival/gun.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archival/gun.c b/archival/gun.c index ade0379..91dd134 100644 --- a/archival/gun.c +++ b/archival/gun.c @@ -45,8 +45,8 @@ struct ind { unsigned char *inbuf; unsigned long *offs; unsigned long *checksum; - int nbytes; - int total; + unsigned int nbytes; + unsigned int total; int percent; void *dgst; }; @@ -56,7 +56,7 @@ struct ind { returns end-of-file or error. Return 0 on error. */ static unsigned in(void *in_desc, unsigned char **buf) { - int ret; + unsigned int ret; unsigned len; unsigned char *next; struct ind *me = (struct ind *)in_desc;