From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 13 Jun 2024 09:33:00 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sHexA-005FX1-18 for lore@lore.pengutronix.de; Thu, 13 Jun 2024 09:33:00 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sHex8-0006m1-RW; Thu, 13 Jun 2024 09:32:58 +0200 Received: from mail-he1eur04on2045.outbound.protection.outlook.com ([40.107.7.45] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sHeYV-0004K7-C6; Thu, 13 Jun 2024 09:07:33 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XJtnMTp7OwJ5Otlddq7TrhbIxQhyxMEedj4cBtJcOZcZMm2hIuhSmnDItbS4vHcGmzS7RTMsFGtaIMxqZLVkP44A/iYgJUy9L6Wf5WzybmBGAeu6C2GuyRD4N3lASwJiUCW6GNJ4eLoJAdW2KOhTPYfHF9n1i/VFMwgmjK6GWI4ejPSlrvh2h1X1kOmorxOMsDjXtp2Mv2rQUhW//X3f8AS0urAhT4L6qsTUypnkSYupL25OuEwVKKtZIA5272Z6g5+Ckn42aQGFft6ln+f2FStYawe31BLaMJE7vu5p6PIt0VQcnKk3UGyPu8g5JU8Jdy00hw8k/HNUYhVl2iMaQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=d/h58WAriCJ3yTemzSph5b90q9HZX2lcm55pXFHve1o=; b=jjJ6hDamYZ1+AhTi/ZtiwFZVK8lw6b+SqRu2wIwtMb4lklF7jfhNIqxxAx9OK+G5G4zyzR91fstXwIOlKKZzEXpHyykg0UOIyun7+Z3Dgc589WwchPsamoFBE0MqSfSrIbYQkMkb81Jjo1jxOaPkfgZUAo1yIkjcdwZkr4MsTcf9F7dA28gz2c9XKBDvBCY34DxLPY7Vwoyjr2VgJlgVNpsavI78st+GOR9PynEVPhzlWlIBAsn81NXS12HEAslRa+p8Bx3izCzJOC5B6dTO27PDHtvcarijsISUFsBdazYYajZf/eGPguW2G1SJh+ueQmVYrsCxmJIRvSR2FICdUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=pengutronix.de smtp.mailfrom=leica-geosystems.com.cn; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=leica-geosystems.com.cn; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com.cn; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d/h58WAriCJ3yTemzSph5b90q9HZX2lcm55pXFHve1o=; b=eBusJRyRZmMl9RH6UC7vgT1qkVIbMKhE1AzqWwsUryabF0mB2Z52suzgoTsfWQPrnEs4PgBvMUFfk1PgzwsfIODTVpuTnvSjcAMycXD0PAHyw1eQWKW7QkQb+301ZTm/PB/5vpkL0oW6dYDhMPSgYN8ueYpVN4yfDYZMelBGGJk= Received: from DU2P251CA0019.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::26) by PAXPR06MB7631.eurprd06.prod.outlook.com (2603:10a6:102:12d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.20; Thu, 13 Jun 2024 07:07:27 +0000 Received: from DU6PEPF0000A7E1.eurprd02.prod.outlook.com (2603:10a6:10:230:cafe::a8) by DU2P251CA0019.outlook.office365.com (2603:10a6:10:230::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24 via Frontend Transport; Thu, 13 Jun 2024 07:07:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com.cn; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com.cn; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com.cn designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by DU6PEPF0000A7E1.mail.protection.outlook.com (10.167.8.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Thu, 13 Jun 2024 07:07:26 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Thu, 13 Jun 2024 09:07:26 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Thu, 13 Jun 2024 09:07:21 +0200 Message-Id: <20240613070724.3400651-1-Qing-wu.Li@leica-geosystems.com.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 13 Jun 2024 07:07:26.0071 (UTC) FILETIME=[5888A070:01DABD60] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU6PEPF0000A7E1:EE_|PAXPR06MB7631:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: cbd30858-06c5-486e-21cb-08dc8b777b4c X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230034|36860700007|376008|1800799018|82310400020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?E+srRzzd0SGGo0pLlm5WWTm8+6pPh0qLKxuHITlf3c77f0UCdsvUA68ndOWN?= =?us-ascii?Q?JjctrzVtLFXpat+T2wZ4daL0ova6woDGs6WvvOipH1VnOdnHSsDawYnU8tPx?= =?us-ascii?Q?JhIfzMuvSZXqr2yUfXBwoJjNhkctZGMNbcgpHxokRktL5ERiBc0gDy/J7e6l?= =?us-ascii?Q?cmb7K9AA9flAw+vYezoRbA+obLv8pc6nP77gIuZs9VXErerWb4W6L3uC8Elz?= =?us-ascii?Q?KB3ogXXf6o9WZW3f+OCLAU264ISfGvraSCYkAgLTQ6OM4Ns+SnjkIfzfSWvq?= =?us-ascii?Q?+snIpcCr8VeBfNOXd46rtg3rDdgL4WcR2B/U+cH1SFOXmelt05vTsATk/32Y?= =?us-ascii?Q?fVWymVAnCrhY39ILHjZQgmOPCIfa90bO4+9eX0mWWtS9mLTF6AtuC+m8/m37?= =?us-ascii?Q?T1fiKjQwuLKH5YEN2/PuulEswlKCXeoqtM+wbJQV4kVNGAjad3SAUHq+e+NG?= =?us-ascii?Q?8rwKK5NV74E70MyPyOBw29IqUwYaLtuu5G0oS5zTwttiaYFTgUTVb0anYBdW?= =?us-ascii?Q?zBLBRCju9QXzcrT7tfzTSRB7XCv52mHliXjZ/VzgLQfSE/j+Pb1wpoDBzcVS?= =?us-ascii?Q?wBgdzvu2eK3P2gD6ZMQ3qRIrIfWqkjJKcjc/k9LrXjW8lsf3Mf4JCk68Az7v?= =?us-ascii?Q?NuFMGFmp8IhwtlLIbP9pRvMQJjeTOpJsKxqyXNIeOvcyELUWKeBZA/BQsbnH?= =?us-ascii?Q?7ZCzV6jlp+ybBIObY43pH95l+mx4P6c9OgI1oo8Q9t2O8tsQW+7WJVhEPTok?= =?us-ascii?Q?YQKv+OfdnrCg/IEwttDUeFlmty2L8vpVYRu0YdhJdT84dwekWDbrGhtzzQ2c?= =?us-ascii?Q?Vx5MVZJQnDhFAjpsJc6ZILwTdA5L+/J95hr2wnqEYD1YfDWCeISD8CXvbjkR?= =?us-ascii?Q?wy0u544JK97aFN0/HN0N5y+A/CE2thsfpfj10+Tdr6l8XNj/Aa9ZKyiHEF1i?= =?us-ascii?Q?gSKg4NgIMXwTyLeEYLHgoPMxLu1ihrgeefEYmvFjvKayu/fjz5XNbrwZt9Z2?= =?us-ascii?Q?0A1v0MbNOXcYUcpprqXlt/je+AI98jTq7urwFcAtFXOzBFXd2HWAYnH7aTX/?= =?us-ascii?Q?ZFZrv/ANCvSr+9zbQmkfrqcbf506e4dK/rLiW9kXlyjtopOiy6h+/M5UdtQn?= =?us-ascii?Q?jNIgVUd5VTizf5ty3Z8A2+yIod6anriySCJCgMrXvaLy1YspwJyBtn4vcWlQ?= =?us-ascii?Q?SX0344QAkAcKcDJqlzmQGHsooLBtMl8aSnN7QWUqKzf00GqplzxCBLjViaZD?= =?us-ascii?Q?kmeJjL0h+Fb81SOAdBmbSslH8fYlQymF8B3/Fh09Qm/0lvxnup5RWMkeO7Ez?= =?us-ascii?Q?HkKQEPHo6SFXrgEFwNirIT454YhDts4Rwh0JC1RLfvMVYyExodESdOSN9Qa3?= =?us-ascii?Q?pfLYFy1cMVJaNMW+/pQcRDRqHpcCLTOxzLFOKRpJbT8geGP+3g=3D=3D?= X-Forefront-Antispam-Report: CIP:193.8.40.94; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:hexagon.com; PTR:ahersrvdom50.leica-geosystems.com; CAT:NONE; SFS:(13230034)(36860700007)(376008)(1800799018)(82310400020); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 07:07:26.3380 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cbd30858-06c5-486e-21cb-08dc8b777b4c X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a; Ip=[193.8.40.94]; Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: DU6PEPF0000A7E1.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR06MB7631 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 X-Mailman-Approved-At: Thu, 13 Jun 2024 09:32:56 +0200 Subject: [OSS-Tools] [PATCH platsch V3 1/4] platsch: constify draw_buffer X-BeenThere: oss-tools@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "OSS-Tools" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: oss-tools-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false From: Marco Felsch Make the dir and base const. Upstream-Status: Pending Signed-off-by: Marco Felsch --- platsch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platsch.c b/platsch.c index 535b589..1aaa8d5 100644 --- a/platsch.c +++ b/platsch.c @@ -111,7 +111,7 @@ struct modeset_dev { uint32_t crtc_id; }; -void draw_buffer(struct modeset_dev *dev, char *dir, char *base) +void draw_buffer(struct modeset_dev *dev, const char *dir, const char *base) { int fd_src; char filename[128]; -- 2.34.1