Message ID | 1521123927.3336.1.camel@wdc.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> 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 A47A0602C2 for <patchwork-dm-devel@patchwork.kernel.org>; Thu, 15 Mar 2018 14:26:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9253928AB3 for <patchwork-dm-devel@patchwork.kernel.org>; Thu, 15 Mar 2018 14:26:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86AE628AB6; Thu, 15 Mar 2018 14:26:10 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B5C2528AB3 for <patchwork-dm-devel@patchwork.kernel.org>; Thu, 15 Mar 2018 14:26:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6599B7FDD6; Thu, 15 Mar 2018 14:26:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3F05F608F4; Thu, 15 Mar 2018 14:26:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id ED425181B9FE; Thu, 15 Mar 2018 14:26:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2FEQ0Md014882 for <dm-devel@listman.util.phx.redhat.com>; Thu, 15 Mar 2018 10:26:00 -0400 Received: by smtp.corp.redhat.com (Postfix) id A32A15D75E; Thu, 15 Mar 2018 14:26:00 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 956895D75C for <dm-devel@redhat.com>; Thu, 15 Mar 2018 14:25:59 +0000 (UTC) Received: from esa4.hgst.iphmx.com (esa4.hgst.iphmx.com [216.71.154.42]) (using TLSv1.2 with cipher RC4-SHA (112/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F10C4C05B03B for <dm-devel@redhat.com>; Thu, 15 Mar 2018 14:25:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1521123947; x=1552659947; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=Hkmzf3do8FSkCPONQW4kD4xuLnRDAPo17u/a/0ohy1w=; b=S2Q8G2HmbCxzMXF7TmSTf+N/dSMLkbhnDQbsihKQCZsENqVn4FV0Q+mB S+RCvdcWYUvd4yW2KnTJznGMGts5g/sXPWe3afvnDuYXx0mC1wHGf/Oy3 JyMWxOGIKbWqNx/1WibvGfcxWB+QpxQh0R3+4RiHENIuO31FKK8mQpuFu rXrcFXe3dZ7q3pzSGio/Go4JV+Ssf9uGf4sDrQpVcPvG6hu1WhedELuds TDiOggpwNh/wZnzcCQPIqAT6iuayvJjVTQVd82iPXH7io+H3Cx94P4DiL DFTMpgetRE6bWFM71z/62Rd5Qa8ZvOaacImu+IukGKOOlLHH2Z4QX0xSH g==; X-IronPort-AV: E=Sophos;i="5.48,311,1517846400"; d="scan'208";a="73564098" Received: from mail-by2nam03lp0050.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.50]) by ob1.hgst.iphmx.com with ESMTP; 15 Mar 2018 22:25:30 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Hkmzf3do8FSkCPONQW4kD4xuLnRDAPo17u/a/0ohy1w=; b=EpPujFLVRx/eU0Bkc/gUOc18tVtBJ7Et0mCs1gSifhv4p9iPuwZTOVTUqDHw9RwXkAEqPwdw4xjRGtz5yvrhtwhrlU3EYx1Y9gl3KUcR6wT8DPYSIvJhqIXySt0XLEP6wHsNpzBkQv1iWYi3/W7DYPF/SKsPQUaR6HfJDWws4As= Received: from MWHPR04MB1198.namprd04.prod.outlook.com (10.173.48.151) by MWHPR04MB0241.namprd04.prod.outlook.com (10.169.202.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Thu, 15 Mar 2018 14:25:28 +0000 Received: from MWHPR04MB1198.namprd04.prod.outlook.com ([fe80::a06f:fa0e:f691:9dca]) by MWHPR04MB1198.namprd04.prod.outlook.com ([fe80::a06f:fa0e:f691:9dca%13]) with mapi id 15.20.0588.016; Thu, 15 Mar 2018 14:25:28 +0000 From: Bart Van Assche <Bart.VanAssche@wdc.com> To: "mwilck@suse.com" <mwilck@suse.com>, "christophe.varoqui@opensvc.com" <christophe.varoqui@opensvc.com> Thread-Topic: [dm-devel] [PATCH v2 04/23] libmultipath: parser: use call-by-value for "snprint" methods Thread-Index: AQHTvGl3iAW5avNg6UuQ1IafBOgO3Q== Date: Thu, 15 Mar 2018 14:25:28 +0000 Message-ID: <1521123927.3336.1.camel@wdc.com> References: <20180305231507.10386-1-mwilck@suse.com> <20180305231507.10386-5-mwilck@suse.com> In-Reply-To: <20180305231507.10386-5-mwilck@suse.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [76.103.131.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MWHPR04MB0241; 20:fdVIj/uRKNulP8Iuyfd2iyDhBGwd3kar1FArLIkg3BbzZoPx36f72YRMUAt8zhjfWt+t016rNbuE9o5YlgOt3ZnIagzM1ZOmQtQBJPoc5e4wb/nU07OvcKC2EH+JAs/OJkMhJyqXU9Xpll9TGVNUtKalaZjo8efIed/jYXk8naY= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e79df9f5-20be-43a2-0124-08d58a809a11 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:MWHPR04MB0241; x-ms-traffictypediagnostic: MWHPR04MB0241: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Bart.VanAssche@wdc.com; wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: <MWHPR04MB02411B054B9EFB144EEAAA2998D00@MWHPR04MB0241.namprd04.prod.outlook.com> x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3231221)(944501270)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:MWHPR04MB0241; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB0241; x-forefront-prvs: 0612E553B4 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(39860400002)(396003)(39380400002)(376002)(366004)(189003)(199004)(377424004)(6486002)(110136005)(26005)(186003)(86362001)(6506007)(102836004)(8676002)(81166006)(81156014)(2950100002)(3846002)(6116002)(6246003)(53936002)(105586002)(25786009)(6512007)(305945005)(76176011)(3280700002)(68736007)(103116003)(6436002)(5660300001)(3660700001)(2900100001)(316002)(106356001)(72206003)(8936002)(7736002)(229853002)(97736004)(66066001)(5250100002)(478600001)(2906002)(2501003)(4326008)(14454004)(36756003)(99286004); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0241; H:MWHPR04MB1198.namprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; x-microsoft-antispam-message-info: ibWKKyFGQt2bOgNapsiqZlW25OCrUCBOtL3aq9G9jKLX6yYOUKNqwmeescAk9yfQV5VW3IWE1yWH5kHQjZzCGzygfdWpGvFTRXG/UCG8e8FuxebGcoa5kmP12V3Ng/x2YtOclpG7GULr+WMkjO+z0gPgobD0ZAXMS76Yg/xxJL4LI2e4Zwdnl0Km0/vW2gdRbJrfF3zcg80vWRqINdheyseclysRZ/Z0uUehqCmaJOJEFMUHDPCChfNmBNFXkoWpwmReLav2Y4lSZLEhV0lBVFAPNXOqUykzOGI01Ni8JMYvJb686t3VNpy8Gdmv49xSzCOFCw/upUqQ5xxRrhPW/w== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: <F864DDDE77338742BEEAD4E95F65A79C@namprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: e79df9f5-20be-43a2-0124-08d58a809a11 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2018 14:25:28.6795 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB0241 X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 207 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 15 Mar 2018 14:25:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 15 Mar 2018 14:25:47 +0000 (UTC) for IP:'216.71.154.42' DOMAIN:'esa4.hgst.iphmx.com' HELO:'esa4.hgst.iphmx.com' FROM:'Bart.VanAssche@wdc.com' RCPT:'' X-RedHat-Spam-Score: -0.8 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW) 216.71.154.42 esa4.hgst.iphmx.com 216.71.154.42 esa4.hgst.iphmx.com <prvs=605f3e7a8=Bart.VanAssche@wdc.com> X-Scanned-By: MIMEDefang 2.78 on 10.5.110.31 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MIME-Autoconverted: from base64 to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id w2FEQ0Md014882 X-loop: dm-devel@redhat.com Cc: "dm-devel@redhat.com" <dm-devel@redhat.com> Subject: Re: [dm-devel] [PATCH v2 04/23] libmultipath: parser: use call-by-value for "snprint" methods X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 15 Mar 2018 14:26:08 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/libmultipath/dict.c b/libmultipath/dict.c index ea273dd91962..ac9216c4c5f3 100644 --- a/libmultipath/dict.c +++ b/libmultipath/dict.c @@ -23,6 +23,7 @@ #include <errno.h> #include <inttypes.h> #include "mpath_cmd.h" +#include "dict.h" static int set_int(vector strvec, void *ptr)