{"id":802703,"url":"http://patchwork.ozlabs.org/api/1.2/patches/802703/?format=json","web_url":"http://patchwork.ozlabs.org/project/swupdate/patch/20170817142355.2483-1-christian.storm@siemens.com/","project":{"id":58,"url":"http://patchwork.ozlabs.org/api/1.2/projects/58/?format=json","name":"swupdate development","link_name":"swupdate","list_id":"swupdate.googlegroups.com","list_email":"swupdate@googlegroups.com","web_url":"https://github.com/sbabic/swupdate","scm_url":"git://github.com/sbabic/swupdate","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170817142355.2483-1-christian.storm@siemens.com>","list_archive_url":null,"date":"2017-08-17T14:23:55","name":"[resent] archival/gun: Fix Wsign-compare compiler warnings","commit_ref":null,"pull_url":null,"state":"awaiting-upstream","archived":false,"hash":"8d24157ef1a5d2d82a7c6960a7673c82bef6009c","submitter":{"id":72180,"url":"http://patchwork.ozlabs.org/api/1.2/people/72180/?format=json","name":"Storm, Christian","email":"christian.storm@siemens.com"},"delegate":{"id":1693,"url":"http://patchwork.ozlabs.org/api/1.2/users/1693/?format=json","username":"sbabic","first_name":"Stefano","last_name":"Babic","email":"sbabic@denx.de"},"mbox":"http://patchwork.ozlabs.org/project/swupdate/patch/20170817142355.2483-1-christian.storm@siemens.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/802703/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/802703/checks/","tags":{},"related":[],"headers":{"Return-Path":"<swupdate+bncBDD6BWV65QPBB2GO23GAKGQEO7K47CI@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=googlegroups.com\n\t(client-ip=2a00:1450:4010:c07::23c;\n\thelo=mail-lf0-x23c.google.com;\n\tenvelope-from=swupdate+bncbdd6bwv65qpbb2go23gakgqeo7k47ci@googlegroups.com;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=googlegroups.com header.i=@googlegroups.com\n\theader.b=\"ZUHLbkbT\"; dkim-atps=neutral"],"Received":["from mail-lf0-x23c.google.com (mail-lf0-x23c.google.com\n\t[IPv6:2a00:1450:4010:c07::23c])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xY7mW5PVBz9t4P\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 18 Aug 2017 00:25:46 +1000 (AEST)","by mail-lf0-x23c.google.com with SMTP id g77sf12317lfg.8\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 17 Aug 2017 07:25:46 -0700 (PDT)","by 10.25.77.10 with SMTP id a10ls236449lfb.43.gmail; Thu, 17 Aug\n\t2017 07:25:44 -0700 (PDT)","from thoth.sbs.de (thoth.sbs.de. [192.35.17.2])\n\tby gmr-mx.google.com with ESMTPS id\n\tj199si1646356wmj.4.2017.08.17.07.25.43\n\tfor <swupdate@googlegroups.com>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 17 Aug 2017 07:25:43 -0700 (PDT)","from mail3.siemens.de (mail3.siemens.de [139.25.208.14])\n\tby thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id v7HEPh0a018419\n\t(version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)\n\tfor <swupdate@googlegroups.com>; Thu, 17 Aug 2017 16:25:43 +0200","from MD1KR9XC.ww002.siemens.net ([139.25.68.253])\n\tby mail3.siemens.de (8.15.2/8.15.2) with ESMTP id v7HEPhaO000668;\n\tThu, 17 Aug 2017 16:25:43 +0200"],"ARC-Seal":["i=2; a=rsa-sha256; t=1502979944; cv=pass;\n\td=google.com; s=arc-20160816;\n\tb=VvQnSCBOVNble/BzHPOPfVI7JJ3VrfiMgi7Lofzz78Uc74e9+B5xom0fMUJbA0RFXQ\n\t/oUyWRV+N3sQfJ5F5Rl2SADar67qx5cxxiTt8oh1Ue/Z7Y7bSqWyJ42PcqUBHeee4r7L\n\tODJl4mUVJcbWbW89Ma4yKxIzy5qZV0NPX8B4EArlaIRXY3b8KPIiVriRAyJUKO5S59nK\n\tHf0WGKKMHWQa0DgTAON0wbBZX+V6leXKUBx/Bw79qQu/wX3bEpoLgyW6ogaF2lHV2RrJ\n\tXWBqMLA/b4gc6VavR8VjRPwk0grSwHOsuArDwtvjqHmpor2rGwJXFyyfLITG5BSnTa82\n\t59PQ==","i=1; a=rsa-sha256; t=1502979943; cv=none;\n\td=google.com; s=arc-20160816;\n\tb=LK1G4pEwvwgTAaJyvMcLh7yr1bfQcPCks9/YGqi5l9NdMiiWA6mbvQXHcn8pjrMxQU\n\ts+GakW/3OzxgdVA8qlLhY3oI2ygH70vQ540JW73O9Qt1xs4sJSpULs7933969DD2b1wd\n\tu7cGusyyXFyiNs46VMV+eO7+i2eIMEPotljQm6OKTJUi9G5JpPfW0Bex34c2sWG5DWcA\n\tXHVWqGedZ1ehc8ECNdOLeyeM9d4x7QmSPWi+ycas9SmCE1Fhg/Y0pzbvvxaSh2aGcohV\n\tbw9bFu2M7J/QTUoO6jksSu0M5nmAEbP5wTpbctyX9mNomANbRkoZljZ9/LGvMtJhFIag\n\tq7/A=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n\t:list-id:mailing-list:precedence:message-id:date:subject:cc:to:from\n\t:arc-authentication-results:arc-message-signature:mime-version\n\t:sender:dkim-signature:arc-authentication-results;\n\tbh=rGfl+DrVhwWUy/0hVbuGGRv0TClJ4wZRdjbqeiHqsec=;\n\tb=ks6ZNlOsjz80ImhtQCfUQRT7rguXhU5s8zJ5CbzPtfMOSn7VliUu4UrHqFL2dk1y0S\n\tYSuzqGm4V4UtkGPmlVWl0jK92w567x5Q5UuZqqUsws+WDxPyZYgEMNGOIH8P3NF8RYD8\n\tXJ2Zv4hM/9Pa2IF2anVjkb425l9EE3QEaKDHHAR5hVlNu/O38ioDJZZWijB7TLjs/3Jw\n\t1E9n9amr59vJfOt66yNUUT0+av0JFbgM3RCWYx6gbXsh9tsyi9sPCN7y5s6Ts2k8jbyA\n\tsLDtacy+dec/YpJO6K1m5n7GuVF1Wtw5SCAm62ochob2CltKbMF3pfTasTZ9LerjrtS6\n\ta62A==","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=message-id:date:subject:cc:to:from:arc-authentication-results;\n\tbh=8hoI6wU9FQ7BsUFTgLvqxM3gRSfD7cnOn6DmMkS5++g=;\n\tb=w7ANIUFIpqwj1G53gHuZtlZPQFrs9gbK7/Uv0XrLNlTeiAvH/ws8tIJeWUIwBexUql\n\tXx+5X5NDDC95yB119ps01V9bMujGiwg51NHnkL17wcOwKrh2JQYe7Myoy/F83XZ+YxkP\n\tSfLCqiaQn/mAY+gJjlK2IwFK48zhsopvMg1Np/X65B7F0F594R1SB8sf0J7s6ELOSIcc\n\tI+bPO6eeIjWmHUbyppcceXhgx4DVPsqzV4LQqK9opF6wscYd9Rn0mqkYGcohcE7tF8mX\n\tThRkhEsNGDXlMJAvhH69WQbLDbXYKfvnV3QgDkUSFeZdpHWfN0RC/znZH00mamdnH+9U\n\tCVzw=="],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n\tspf=neutral (google.com: 192.35.17.2 is neither permitted nor denied\n\tby best guess record for domain of\n\tchristian.storm@siemens.com)\n\tsmtp.mailfrom=christian.storm@siemens.com","i=1; gmr-mx.google.com;\n\tspf=neutral (google.com: 192.35.17.2 is neither permitted nor denied\n\tby best guess record for domain of\n\tchristian.storm@siemens.com)\n\tsmtp.mailfrom=christian.storm@siemens.com"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=googlegroups.com; s=20161025;\n\th=sender:mime-version:from:to:cc:subject:date:message-id\n\t:x-original-sender:x-original-authentication-results:precedence\n\t:mailing-list:list-id:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=rGfl+DrVhwWUy/0hVbuGGRv0TClJ4wZRdjbqeiHqsec=;\n\tb=ZUHLbkbTgB+/8m0fZLiTtQrOQEZSe288+qTJnwSTsQUhnhSGTvgWtU9gYIXLdSMgaM\n\tqNPntXXCu7XBAmA0euLKlPcBxuryeuNU8IVRwTovAHH81tgijco58/ErKMFWZqAf0T9G\n\t8WtAIW6ISh2gy4I9ZqtJC3w6za5BehYs1XaL+gRZKWkP73ypdt28nML6YjSBI8hjNpy0\n\tDE4LjeUIlNWmtR5WiAm7N+Gij6GZhdTg9wVSPbuxh5MXQeLm2a7CCAW6vlnNC8JrqG7d\n\tRuKOCv+MxVOF+vDVd3Trc/SWz734OKnUOrBkHj92EBJ1lfJTnrnAY7JR/GUALTaRsZo1\n\tzaog==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=sender:x-gm-message-state:mime-version:from:to:cc:subject:date\n\t:message-id:x-original-sender:x-original-authentication-results\n\t:precedence:mailing-list:list-id:x-spam-checked-in-group:list-post\n\t:list-help:list-archive:list-subscribe:list-unsubscribe;\n\tbh=rGfl+DrVhwWUy/0hVbuGGRv0TClJ4wZRdjbqeiHqsec=;\n\tb=suy2XFLmdHVHElH+TKupX5wX+rAOJ+ZWCRTt+mqIu6C8+6A7FYwki8pZn/HuJPhCQT\n\tsl0b4BuE2nHj0afmjD93e1roPV63qKvEmj2RNgPN6xuBl8Ch4Y/sic2mYrA/78PXCH9l\n\tz1zKvVrQPPg1kmcWlE6GtjR9FVzXq/Sb67nZ0wNHvWYBK+BbDl+OGgdgp/VUySJqMEZl\n\tqW0KahJ6uBVt7lnB6SmDkYbuqBWl6cvzJVzY8yD3V2sYlT8XxJPXiaa1dwDjDqOryV2t\n\t4lFj5U+PolesbmuKJGDR2nZ/eH3HT8C4iF7lwj7Rlpm5JVkcOYzWuTUHHZy7g0s+1Av/\n\tQ3fg==","Sender":"swupdate@googlegroups.com","X-Gm-Message-State":"AHYfb5hnRwmyESY9AG3wtYfg6cBVxanv7vRH/+Ihj5UIPRDgc/Kqsh70\n\tFDIRCB6Ov0qQkQ==","X-Received":["by 10.25.15.37 with SMTP id e37mr636lfi.0.1502979944371;\n\tThu, 17 Aug 2017 07:25:44 -0700 (PDT)","by 10.46.5.9 with SMTP id 9mr930828ljf.28.1502979944018;\n\tThu, 17 Aug 2017 07:25:44 -0700 (PDT)"],"MIME-Version":"1.0","X-BeenThere":"swupdate@googlegroups.com","Received-SPF":"neutral (google.com: 192.35.17.2 is neither permitted nor\n\tdenied by best guess record for domain of\n\tchristian.storm@siemens.com) client-ip=192.35.17.2; ","From":"Christian Storm <christian.storm@siemens.com>","To":"swupdate@googlegroups.com","Cc":"Christian Storm <christian.storm@siemens.com>","Subject":"[swupdate] [PATCH resent] archival/gun: Fix Wsign-compare compiler\n\twarnings","Date":"Thu, 17 Aug 2017 16:23:55 +0200","Message-Id":"<20170817142355.2483-1-christian.storm@siemens.com>","X-Mailer":"git-send-email 2.14.1","X-Original-Sender":"christian.storm@siemens.com","X-Original-Authentication-Results":"gmr-mx.google.com;       spf=neutral\n\t(google.com: 192.35.17.2 is neither permitted nor denied by best\n\tguess record\n\tfor domain of christian.storm@siemens.com)\n\tsmtp.mailfrom=christian.storm@siemens.com","Content-Type":"text/plain; charset=\"UTF-8\"","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n\tcontact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n\t<mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n\t<mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n\t<mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"<mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n\t<https://groups.google.com/group/swupdate/subscribe>"},"content":"Fix Wsign-compare according to latest version of gun.c from\nhttps://github.com/madler/zlib/blob/master/examples/gun.c\n\nSigned-off-by: Christian Storm <christian.storm@siemens.com>\n---\n archival/gun.c | 20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)","diff":"diff --git a/archival/gun.c b/archival/gun.c\nindex 67ac9bf..ade0379 100644\n--- a/archival/gun.c\n+++ b/archival/gun.c\n@@ -82,7 +82,7 @@ static unsigned in(void *in_desc, unsigned char **buf)\n     } while (ret != 0 && len < SIZE);\n     percent = (unsigned int)(((double)(me->total - me->nbytes)) * 100 /\n \t\t    (me->total ? me->total : 1));\n-    if (percent != me->percent) {\n+    if (percent != (unsigned int)me->percent) {\n \tme->percent = percent;\n \tswupdate_progress_update(percent);\n     }\n@@ -179,7 +179,7 @@ static int lunpipe(unsigned have, unsigned char *next, struct ind *indp,\n                   int outfile, z_stream *strm)\n {\n     int last;                   /* last byte read by NEXT(), or -1 if EOF */\n-    int chunk;                  /* bytes left in current chunk */\n+    unsigned chunk;             /* bytes left in current chunk */\n     int left;                   /* bits left in rem */\n     unsigned rem;               /* unused bits from input */\n     int bits;                   /* current bits per code */\n@@ -460,10 +460,10 @@ static int gunpipe(z_stream *strm, int infile, unsigned long *offs, int nbytes,\n \n         /* check trailer */\n         ret = Z_BUF_ERROR;\n-        if (NEXT() != (outd.crc & 0xff) ||\n-            NEXT() != ((outd.crc >> 8) & 0xff) ||\n-            NEXT() != ((outd.crc >> 16) & 0xff) ||\n-            NEXT() != ((outd.crc >> 24) & 0xff)) {\n+        if (NEXT() != (int)(outd.crc & 0xff) ||\n+            NEXT() != (int)((outd.crc >> 8) & 0xff) ||\n+            NEXT() != (int)((outd.crc >> 16) & 0xff) ||\n+            NEXT() != (int)((outd.crc >> 24) & 0xff)) {\n             /* crc error */\n             if (last != -1) {\n                 strm->msg = (char *)\"incorrect data check\";\n@@ -471,10 +471,10 @@ static int gunpipe(z_stream *strm, int infile, unsigned long *offs, int nbytes,\n             }\n             break;\n         }\n-        if (NEXT() != (outd.total & 0xff) ||\n-            NEXT() != ((outd.total >> 8) & 0xff) ||\n-            NEXT() != ((outd.total >> 16) & 0xff) ||\n-            NEXT() != ((outd.total >> 24) & 0xff)) {\n+        if (NEXT() != (int)(outd.total & 0xff) ||\n+            NEXT() != (int)((outd.total >> 8) & 0xff) ||\n+            NEXT() != (int)((outd.total >> 16) & 0xff) ||\n+            NEXT() != (int)((outd.total >> 24) & 0xff)) {\n             /* length error */\n             if (last != -1) {\n                 strm->msg = (char *)\"incorrect length check\";\n","prefixes":["resent"]}