From patchwork Thu May 17 23:16:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10407839 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4BA2260353 for ; Thu, 17 May 2018 23:16:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38470287C8 for ; Thu, 17 May 2018 23:16:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CE7F287D2; Thu, 17 May 2018 23:16:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54F8C287C8 for ; Thu, 17 May 2018 23:16:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751914AbeEQXQe (ORCPT ); Thu, 17 May 2018 19:16:34 -0400 Received: from mail-bl2nam02on0059.outbound.protection.outlook.com ([104.47.38.59]:47949 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751880AbeEQXQd (ORCPT ); Thu, 17 May 2018 19:16:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uievolution.onmicrosoft.com; s=selector1-xevo-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zFDy5O43Q8Yc7Ed171EOQHu9LsQuSbgmHYUBH86DViI=; b=VtBYcEJ97fUSjrK9bLUmmG/+VtSEzNxCkpxK8hu6oUcT8l2FNiTA0HIj18q9JSmurpHKhPjNncwArJlo9G/wO9ZHlMD4vARj8R+89E6fTnzZlXRrizYg+O4AQUFRKRggldGav+1FgDTCVHj7dD7Gb7yIlewzVcm9/7RBM9Sri2c= Received: from columbia.corp.xevo.com (65.122.179.226) by MW2PR0102MB3417.prod.exchangelabs.com (2603:10b6:302:3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Thu, 17 May 2018 23:16:30 +0000 From: Martin Kelly To: linux-iio@vger.kernel.org Cc: Jonathan Cameron , Martin Kelly Subject: [PATCH 1/2] tools: iio: iio_generic_buffer: fix types to match Date: Thu, 17 May 2018 16:16:06 -0700 Message-Id: <20180517231607.10856-1-mkelly@xevo.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Originating-IP: [65.122.179.226] X-ClientProxiedBy: MWHPR1001CA0027.namprd10.prod.outlook.com (2603:10b6:301:2a::40) To MW2PR0102MB3417.prod.exchangelabs.com (2603:10b6:302:3::10) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:MW2PR0102MB3417; X-Microsoft-Exchange-Diagnostics: 1; MW2PR0102MB3417; 3:hkbFLvKfuAF1LXCJFaNPL87vDRWcZjzvBWazi6sAeDyjffrmZTaA2kvTdTKHPncukITBLixzqXcTIVmyP4TJsVfjL2Wu0t31UVoQTtfKIlz0+l8Q0lvEK6dfHCRhzcbALkufERYgrgGufZLvuckfpAuzT6UHRoI4Nr98Dju+nvMyomLT8m26HXy+AhUp2dRX3zEzfU5/oaDHLX/SyjLQkmvzP6eJz2Y8iF1xB1Xw0fCk9idBQAOd2RWlSCw+NMG0; 25:kVlSr+uXc4N5udD2z+erbcreqTTCjPziHRWBjNlIjiI7ZMfbgbiZxMixkqIgUnVEvSiSYZS6FhcmjIMio4rU8aOiUCENIq64dvIQ2/OtEtuWMGoTAZz51mImIgDFKd5+anu+ScnmcMzWBFM/fcUvCoGVg2uZ+X3QomshX8GYLALUKkdFy7Y5uHSzO9OVzChbXLdl7XpZyiZ2Ebe2dnHNpxwb967vSsXZGKLjFw+ZC+3vUgNSgN+EN1h1+GBQvKZex3YfbDE7wfg3zyO/4FSe7tQTOORBgHtn3A0SrwyFVnzujYgzMhzbG1FIJ9Dt1/zFcUpwyDirldaLLjviQvs6Hg==; 31:dW82vrNzZys09xQf5yH2V7UH4rCdl2zOEV79lqbON29HM3FBDdz5TgJWdV+gQ63x4VjS64LbBAMjMxD3Wf4bWosGfVBq1moD/kqu9QDJSA+kA7Kh8MndduWgRwL/Dxl4bmtb1YUiGiLXVXIDHemW3gTBlEd1gK6b/uT9n3n97nmIUYBj5TR8BosizjL9RnjxbxuQVVrPTLQBsb7C3y6jC+o2YGPRkkkzcNwDgZaZVqs= X-MS-TrafficTypeDiagnostic: MW2PR0102MB3417: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=mkelly@xevo.com; X-Microsoft-Exchange-Diagnostics: 1; MW2PR0102MB3417; 20:xwO/tayiAoT4FkNcDuzrSClNNRmKqQ3gUrPOzrdJFaNIjHN8Wlo3t9XnuiFcZO4HjwRtOOREbtZPgFHMTJwT30MZ8Nufc4dH2dKN/Q0ydyCGK9GEIRvC1aI+s/fJDONZNzBynCxr7nMG2HIry1lc9C8eKcT+vAPIjAIvPs/Jem7rdHHiQtLCH1rkgGpQDBbtbs+I72oYqpIveWdvU+pZZ5NTOsrXx3Q38/MV04gvbliFPgGUNeBm8v7mpXB0dt5E4Gc45PPtPHl4fVnfLbyDdlZASvEkJut0KGvs/FWoD/tKpb9c16EWRNhheXTs0hakad1qsrBovehtHBN0TrNsPudTGWq56qxiGyA3HZhiIDkvWvflBP2J82TLmoRHs2jvNYEKf9KhrDNfIr9+sFlq7ollW25bLA1Q3BevTdQx/60euhqP3KL+NitLXPofrroWd3gMgBqMDNMpMD0URkOkIcghp8a7EANEVOs2TOoP77bSUZ+APzbbLrLL4z/9GDDv; 4:sKx5dYTWJI46JzcT2pTM6NqWqRQN3L1KNmFmuY8wMo3PmdmCVywCtcFtxHCsTDrCCE4vAjaloDGimcGcF7dK7BsWOORFtWcu9MVyJnnwVyooOKfAQ2LT/EQWSYAvGREiwqG36W2wGRAXiNk5inT//2TfGZcWXC58vtr7hZlwiqtF3Y4O6d+YCKPyzm+nUwSqxdROMuhTvBzHRMTTyc4okpwbQoaGXDISGvtHIeOJZen3gKfKoQp/DhpbyL2SAXuOSE5KaqPyAkgECH2+NrW2dw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:MW2PR0102MB3417; BCL:0; PCL:0; RULEID:; SRVR:MW2PR0102MB3417; X-Forefront-PRVS: 067553F396 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39840400004)(39380400002)(346002)(376002)(189003)(199004)(3846002)(54906003)(2906002)(25786009)(575784001)(86362001)(50226002)(6486002)(8676002)(81156014)(97736004)(81166006)(8936002)(48376002)(47776003)(316002)(66066001)(6116002)(5660300001)(50466002)(1076002)(16586007)(106356001)(105586002)(6916009)(68736007)(2361001)(6666003)(386003)(59450400001)(16526019)(2351001)(7736002)(2616005)(305945005)(51416003)(956004)(26005)(486006)(52116002)(7696005)(36756003)(478600001)(4326008)(476003)(186003)(53936002)(107886003)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:MW2PR0102MB3417; H:columbia.corp.xevo.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: xevo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MW2PR0102MB3417; 23:+9BiZxAwhWGTFqNnfQYSmbTSKWgH/GrVY70K2mF?= =?us-ascii?Q?ZakgUVXsXfa58rIkGi60J2fzMWF2Je1dKeVBtpCCBU/uvnuebHWPVfRqNRQ3?= =?us-ascii?Q?JAk6lgKs5MoR1GCXa0XaID6Cz1WMXXtamzq6X9SszORmWXteiRh15shH1WKw?= =?us-ascii?Q?7yfP6b+sDJ9HSUMiwa5qe0K6bKE0smoA3CRp1sRGtgebgusfk20v2DPPNh8Z?= =?us-ascii?Q?EF9PV/goSCxn+ZbKYx8N5q/6mEjtvrkguS0tGi5pVR4jJ5zro5OnJcV4zEXp?= =?us-ascii?Q?S0+Nk3PLDESglQxI1tyv6w2ah8fSi32v96E9d8N6qp6S653dETXB3a7otOHA?= =?us-ascii?Q?V8/PM0L8clqYMXYBrAWFpz3RzhJAhL8bihc7K4g5NgBwVNdo9cTKLJzOfQ8J?= =?us-ascii?Q?ievtFjApVmC8Vow+TgmNWSPliZi7mTNL4bMeekxx+90riuUQCsAJgJ5IzQxW?= =?us-ascii?Q?mdfXpfEAplpVM9S00JWYXV883HQ4fCrJS0nhSqicXDXOisAMdkok2w3Bpw1X?= =?us-ascii?Q?DEnFTPCe9whg+fG9epti1CHpl3hL7VPtHeDFqX0pqK6XQlDYOpnT/jL95FLp?= =?us-ascii?Q?hflELu72ddEn5ImnT4HnrFnn0iOALSG6chElk8k7lXaU3fv1oQpsbJsQvpQq?= =?us-ascii?Q?u7yTlv9LAwLU2ev56GR0yDecuGhzZ68G3e00Ppe6tZ/6EgX620qYGs5pJZ//?= =?us-ascii?Q?xq88ijMoKC6uFe5R98K3MbvQhXOVyUqhqjgbsRMRtmWMLPnk1L69ySZadVEk?= =?us-ascii?Q?ewi98NHYDnXo4PdBZJqXBoO/Tm0/0tQJ1aw+kEkAgH4P5c96WkX1EhKpAHzE?= =?us-ascii?Q?DVAdYtatIh0osY496BoKO7qhUxwr60/nApXBUKuZXVDavgOffKaPSxOj1bEd?= =?us-ascii?Q?11uCKZAYNdjIf9kZbY1Kxouj5f9PdBhHkbql8bZCsXiejidYSLRIpq6btHpK?= =?us-ascii?Q?0dUy/H7LOYzwmorrnqBtCcj+0Cj4NFMPwVWGXYpo7SslJ8kYwF5dL+zAqqIF?= =?us-ascii?Q?lbig1VcIO3DsqWlEOmy1GqcxdIel48a6CVW1+jZ9VzstQ/VbB8BT/wsnmax1?= =?us-ascii?Q?EjK604jfjpPxcOaRXKamRrwmvyEbZ8idcos6FtU7w2+lM+ppKbFu2V7+AXf4?= =?us-ascii?Q?HUOxuWhLOhV4Ii1Dmk9SLKX+R8zrVuVovLS3c4DLE0xOjHuagwrDboEJree4?= =?us-ascii?Q?prk2CY8bSxLsI47gfB7rRveWQhV2LXb6YqLd7hehfstoWYXx9KeQ0ds/3C8W?= =?us-ascii?Q?o+mJhJwXRlKRHhLVP4dd4VXkMwxJpI0AgEicThVEW?= X-Microsoft-Antispam-Message-Info: IYk4gxLgD9ZdZXCsYwA8VjYNX7u0ssNm56ANpbEMdc9p71RbQXZ8J5Ka3ZKz1LWvExmIxGLtu3znSZ2Kei4A/W3Ql3MzLWNVjVFyvAA9emQWGcPPzKtLu/mekXWjDyOAVgxyjBjkT8RziShFy4oVqvEofWGr7ZgXvbfB86GyKz5JJe5/Q4dNGqebZN0X5j3k X-Microsoft-Exchange-Diagnostics: 1; MW2PR0102MB3417; 6:uS+jSIr76W95Wt4WSK0cBoRfdEyd9Drau4f3hrSZtsLZrVyDTLBY9NOxA3dpr7uou7F5n8EvAHKm5WsBzBpa+7NRWTWsfyOp+jbY86xUy0DxrhsJn33k2uG+IOMLD2GAola+IBpGItXK2i70FBMNm27ISpAbQPQmZ6J/fhxqmsIvpqHWL8NOFy8UpiRxbHN/E0gDCgLxjTiFQ+afamYGg4cUBKQNpWYdBEVG32jUKHnsORkq5EKv6NUbkqthaaFqGVEE1tHLaC6hj3WENEWz6/xTxdhuF+ZgMjE3y/lZwUedXmra8cdDRZAcL2x4CZMtiwEUB7f7GSF2up/ggqBtjy48mgBCLipM22kprxJXzdSovLOHe3PuMZpj48svPfbwvN9IQqsN8gUVtcLB3NjpA4NtapOlW8Rp2quHLTsTjNhd1zNr49PlyeNtrIfKb0ylkeNjsxhYPqKrJHNpyAapvw==; 5:LyUpbdPR5lVnbr0i46AJ4iIaLw7byZjhCGiNM6SoXy1BccoWukqbAI4H1Bryz07GyTNNFLOdeN60AcjDEKp4RigKOuyhoIFQs4Xg4QlEIkAw4iAG2z12IGurqfIan8qqX/jLx6DodbL1MNkDfsSGuuuzKlgQC6h6g7/WPufTPgE=; 24:DudSDK7yPtV6uljcUzNxE+yQnY+6sIlY6DqTxgwSetWaT+czqS9SAxsbNiRricVnpmhLiVOlIzMgpZIXLrHXimb9OKlMugFSm+9cwk54X+I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MW2PR0102MB3417; 7:+MGM6yiyffxjL0kH7Z0lJWP21ihauFFVfv1eOgiRuZLvkscDIg9ysGY1sD3jEfTrT5LGxnel7PFLiYTkX4kUSFWJl0LyoSl2gef3R8ChYhHFeoAxXuowAQclW5K6H1NEBScKulfvHmbg9kY7F4mVMrcNC8ghnVuMPnvsBvprZ5QF41KhTqBTx4tueUxHExGo3QiLPfJt9nGPSMr5n+CwdVBaEkI3HHsYPwvlmKUBzgiYpDQKSQdDIdDlT+AgWviW X-MS-Office365-Filtering-Correlation-Id: 9cc918d4-82ee-43ff-8926-08d5bc4c38ed X-OriginatorOrg: xevo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2018 23:16:30.1108 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9cc918d4-82ee-43ff-8926-08d5bc4c38ed X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e0a7ca1f-2458-4cd6-a7c7-d733c07495ab X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR0102MB3417 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Several types are mismatched and causing implicit conversions. Fix them up so the types match. Signed-off-by: Martin Kelly --- tools/iio/iio_generic_buffer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/iio/iio_generic_buffer.c b/tools/iio/iio_generic_buffer.c index f0c6f54a8b2f..aa765c11992b 100644 --- a/tools/iio/iio_generic_buffer.c +++ b/tools/iio/iio_generic_buffer.c @@ -334,7 +334,10 @@ int main(int argc, char **argv) unsigned long timedelay = 1000000; unsigned long buf_len = 128; - int ret, c, i, j, toread; + ssize_t i; + unsigned long j; + unsigned long toread; + int ret, c; int fp = -1; int num_channels = 0;