From patchwork Fri Oct 20 20:47:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Kalashnikov X-Patchwork-Id: 828794 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::240; helo=mail-wr0-x240.google.com; envelope-from=swupdate+bncbd7ivpnd34mbbywbvhhqkgqepna5exa@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="W9VrMmei"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ix1TLeBN"; dkim-atps=neutral Received: from mail-wr0-x240.google.com (mail-wr0-x240.google.com [IPv6:2a00:1450:400c:c0c::240]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yJdCV664sz9t41 for ; Sat, 21 Oct 2017 07:47:33 +1100 (AEDT) Received: by mail-wr0-x240.google.com with SMTP id l8sf1716744wre.19 for ; Fri, 20 Oct 2017 13:47:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1508532451; cv=pass; d=google.com; s=arc-20160816; b=EB9GaRlJ9BM+nuqvRl+RLfUVuCtvP8c1rzweW8Ydy3NSGwuhnlxqpsnKccgC0K8h54 uHEz/R9MOo2Vd5tuKvtzt5CvhAdgeBRKI5rC5Csy2ar82QPnR5j2YWXP828D/v4t5v5U 66cpMVh8CLtPGfIWh+JQTUi19y+ixhjKmVSD9b3eWsclv2tU8Pl+9/EnXIZHcvnekjcF QDu5/EH4FgxKSeCJo2nqTmGtBTB4cY3HDy11WOnpz18oVy7UEPwK3z4+F4iukHrW6zct oF9dynbQrmyMi/EcLQpipuAw49YdYW9sgcEAnOraPpA4w4zpDHYB2or6cKAKI7rO9G+m zDGA== 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=Cugmk89H6sPgThJTSANz4B9p0BXXvH+hnV2n5XcR0rM=; b=XX21Av2Ky0gRIdCw6n0ip06JJMmvnX1bl2207ROALbAZ6BfX8/jLtf5+Mk2ziH5mGV Q2E1v7zPRaECrkzt2xcGKLyTp1wXlAx92lHrrIhO7tSRGgGOqw3yiab1wMGjYzdK1alN Uq9QZIAjGdF2gizpADOZQE9KdZ7FSGTwWdfZsOzHMOkS6IWPjV1oZqncfcu4ryOsdmKi KmXUWKC+m9AT3SaBV75NhOYjmjeW/TteY4nCAYhDRYnEeJ3V+E3amkjErBDm+PIAKc6g ynHlxNcOgkw8L9Oy9fhfEVcQTYsie6HhBtoChkT48m8/VArQES8h+ZmmtYXvPpz10PcV eXZA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YqbfYXn2; spf=pass (google.com: domain of lunix0x@gmail.com designates 2a00:1450:400c:c09::243 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=Cugmk89H6sPgThJTSANz4B9p0BXXvH+hnV2n5XcR0rM=; b=W9VrMmei8d8xiyC/uJddyC8kt9z1Xv9C3I1gOyaFKjjwwKhlA/xC1LMdCMBxcMzAps s7TJ9d6dALCt5cRZEJeDhufE6IH1G86Cllv30azeAzRmv3Ma8ZcACnuzf2fj1x28Sa+F Nd1uDrJMgaK2uFIOxpzlRHNx5+nHYZxrpCDkkn2xmJUDm5rdgox7zjv0v5o3TyQq8Rj0 9lVSX2iC6wEJwzJR4nEsGCfdJvCWoNDZY3n1P1KCVrkqiUWx5VxEl8c2msMf2oPQGb2J IA/u/7UYR/Fv/EzPCaf1v3hZ1nXCbeUKgHylaHhPSvYxZyHrZY73fK9uGbbAsAJv/f9s caog== 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=Cugmk89H6sPgThJTSANz4B9p0BXXvH+hnV2n5XcR0rM=; b=ix1TLeBNF9yCSPbReUFJRM82USIdVOp1WjoqdMFSCT8aI5fX1Sj6TIP1dhrLKpvVvh PSAXULAUdbO3E4Xd3vK+YVILmgGeMTz4FEK9f48GmPgJdLTPF+RrOVj9JS3soDzBaLz/ o9aS9ZOxnIjCWLyindV1E+zsuTAQ/HbjttdOd8k/0ZuN+qHH2xkgXr9x+Z5RJaGiWlAf vHUlRtK1DUEqwJ/rDGlq23qH39+9TjudiV34E2SC/X5fbjkj7AYQkZTOy1MV56UeODpA yFG0hyxZbTaVo5Y4WruttOOOyDp27IX4hvQ44hJXh9/uOYc8emNoBB9Iht9DMW1GY3d7 3YGw== 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=Cugmk89H6sPgThJTSANz4B9p0BXXvH+hnV2n5XcR0rM=; b=pr6C5KeNELVZRtzBetbwoNazqx/a0fGPYzhtiv5SOHtwnEZaPDec4pjyRCSDtxximr 6WYct6rFAlJqMkBfSl6ksWMB/ubDpDfAsxQz66JSPt9B8vT8ScCdh2Qs4VuVKGGcl/KS ajuvVPgpHjy5ZzugI6+hEwythBUorfDY9G/0X87uf1fbSsxVtllwveqQA6YCQDEmvilZ 5rIyLKywoRxKMVsEY6ClV8K6z48p7e1szFyVZP5VXEyKYpgtXuDtnRBfIZBhOz/3R4q9 +Nrp3WD3mbFQHQ3OPNJeRBZZOd66ZWN8dcSCaahSvtfzSV2sDZ4Q0qfgRuAwxp5hSfUB kGng== Sender: swupdate@googlegroups.com X-Gm-Message-State: AMCzsaVxwm+03tROQKkf74FxkeDQwUBqeX1VMoi9+uygpIqLAPdUzFos D9tG/M5bia8m+sxi5kRTM6g= X-Google-Smtp-Source: ABhQp+Qm/IpfzX84QjyT5Q+NEhOmmEKG9oRQz/lB5pzyHYPMgCVGMC6BWJ4GQTkzux5dnP6CRhuwRA== X-Received: by 10.28.107.215 with SMTP id a84mr937wmi.0.1508532451083; Fri, 20 Oct 2017 13:47:31 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 10.28.88.14 with SMTP id m14ls478726wmb.11.canary-gmail; Fri, 20 Oct 2017 13:47:29 -0700 (PDT) X-Received: by 10.28.184.216 with SMTP id i207mr9133wmf.2.1508532449834; Fri, 20 Oct 2017 13:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508532449; cv=none; d=google.com; s=arc-20160816; b=wxvWJ9ng6aZ/6Ygi8W5+uQrqbzXH0gNmCJH3RIq1gXPJrudSwLrmHq5zb+wNn5zDLP HzRsEs8eF9Ewm4awrIPabDsEpjpn8RJw3GHlG4sAeSyJtqxaImThgbxqYs8LeM1jKo56 se4kBgDt4eALAmer4T7TK2VZ7lOnUETfi5ZmzPZ+GwncAM2K2akxQukPOgjYskuTzZ0Z /T1FfNknelT7txfMToXMwvDPLlXEvbeK5PJN1jAByMNB94a6WhConfpgICxENMugm6T2 TwKlHppaFqjc63JRieHOEsDGy6bPz6pKkV2GkMlcj21JRQ4nW+Ia2Yxd8L41Mrisg/Nt /2/Q== 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=+He77gVMzKfuj5jDOSVLq4ePh7nQYHkgXdJhDC8VvNw=; b=H7KjS7belsp6ncZMdV8xU/HDvxlQ8307+4l6s/VDAbtANJ1hIhLHJIrQ8zLGqZIU9h J0mQY+Dv4du/h/7ayi2zSItUiSyTUA8OUmOVyC4HZDVUW2WJLxVH/uxQ9tcYg/ITMGRT XYPAbCDzoFwIIjPKM0AcHlM/oHuGpe7pbbMae78mly0QwFx7jCtbAn+S3WSak4pht5kE xmrfjfW7XDLhcVnJ+HCJppzWdvOv2Bnmk016XaNXsrhouWz60PWDv8T+ysKTRb6jPVWQ h54MnKAgoapq3NpRTNoJ4+Hwj0tKlKmRumMMJZ8Tfio2B7BmeAQBES/mGOk2ZqVCBwQS 4FNg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YqbfYXn2; spf=pass (google.com: domain of lunix0x@gmail.com designates 2a00:1450:400c:c09::243 as permitted sender) smtp.mailfrom=lunix0x@gmail.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com. [2a00:1450:400c:c09::243]) by gmr-mx.google.com with ESMTPS id w190si9176wmf.2.2017.10.20.13.47.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Oct 2017 13:47:29 -0700 (PDT) Received-SPF: pass (google.com: domain of lunix0x@gmail.com designates 2a00:1450:400c:c09::243 as permitted sender) client-ip=2a00:1450:400c:c09::243; Received: by mail-wm0-x243.google.com with SMTP id l68so100632wmd.5 for ; Fri, 20 Oct 2017 13:47:29 -0700 (PDT) X-Received: by 10.28.132.73 with SMTP id g70mr53402wmd.33.1508532449200; Fri, 20 Oct 2017 13:47:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.1.67 with HTTP; Fri, 20 Oct 2017 13:47:28 -0700 (PDT) From: Roman Kalashnikov Date: Fri, 20 Oct 2017 23:47:28 +0300 Message-ID: Subject: [swupdate] [PATCH 1/2] Fix incorrect print type for size 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=YqbfYXn2; spf=pass (google.com: domain of lunix0x@gmail.com designates 2a00:1450:400c:c09::243 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 Acked-by: Stefano Babic --- corelib/stream_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (skip == SKIP_FILE ? "Not required: skipping" : "required")); diff --git a/corelib/stream_interface.c b/corelib/stream_interface.c index a78ed8f..f0e1f3b 100644 --- a/corelib/stream_interface.c +++ b/corelib/stream_interface.c @@ -200,7 +200,7 @@ static int extract_files(int fd, struct swupdate_cfg *software) get_tmpdirscripts(), &img); } - TRACE("Found file:\n\tfilename %s\n\tsize %d %s", + TRACE("Found file:\n\tfilename %s\n\tsize %u %s", fdh.filename, (unsigned int)fdh.size, 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;