From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 19 Jun 2024 14:57:56 +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 1sJust-008hFu-0Y for lore@lore.pengutronix.de; Wed, 19 Jun 2024 14:57:55 +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 1sJusr-0005TR-68; Wed, 19 Jun 2024 14:57:53 +0200 Received: from mail-am6eur05on2053.outbound.protection.outlook.com ([40.107.22.53] helo=EUR05-AM6-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 1sJsSX-00011U-SN; Wed, 19 Jun 2024 12:22:34 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NhDgvYVEEOvpAk7a+0ekLGlHBouWsNaqd92HgViKwsLVQB1qfuXvH/XSTKvcFWLi4c5JR35lcVWq9tG77YYDkc8zeBn5uEnsuSmRAQgUW8USDYWqgIMO67w8pX3ZOtRWYuqFXHCG27QOGq1Z2ov3pR8uWW6eyYddja+56CF5U8xzl47EoF0MN6sbjVcY+nMWnAnZQ6F/4L0RD9sKzLMTnj4MpaZHgCgTFqLkQVDqJ7nCgYWEOOu+bLfDgOOGMVyc4VaXhUQkizterw18Rnz+sGjBi0l+/NE6gaxu/UmYk55gX61a1nHhjx0jveFHHCz6snPTkORjdP8oA6Lq9fdkTg== 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=qHGsxE/pHlda+4RlMWB7YWCSPuQiSey77CI7hqVyzRw=; b=jjuTmjDxmX19zXYG7CPXdIs7Gn3a8TBdJDW+Osi+0T3Krpj/W+X9g0w6+0aD8aCgvNTgMa6wxCNKlUR0/bvj8dKd//pFQVP9zLbExYtmI07+5TIuZW61eLP3JAS7apyIiZM08PHFShA/abON4epta1hC/Uo6GWXGt+/mS6OD7b+BQ4jW9lqPaCue7agD5ajSKZiJRm1n0RnO4rBPQz/r4BLOSo20DrOrw65zPZ4IzEk8M1HWeHNZu489I0A1aK6ad2vYKDDsIk5lQYSoSKNjrAOhoyooTplU49I6J25fyWcegnGk78Ee2CONvuahV7x7kwceXFZqAOY2KuhoXw9OOw== 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=qHGsxE/pHlda+4RlMWB7YWCSPuQiSey77CI7hqVyzRw=; b=UzGSIbhmwzN9DTM3zaGf3ktTBwYo69A7smDUmPN3+sTO5Ds3HgYsNdTAlhDwgEvve11URn4J+174UtzOWNXZZ5FhuN11jupRAI/Z/Wt2/XNHdwGh943w/wI8X0Ky3LGQp7HBTkpUomUNqQ1UczXj1egO8zspTM9N+VB8arnTLlQ= Received: from DUZPR01CA0013.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::6) by PR3PR06MB6764.eurprd06.prod.outlook.com (2603:10a6:102:63::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Wed, 19 Jun 2024 10:22:32 +0000 Received: from DU2PEPF0001E9C3.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::ba) by DUZPR01CA0013.outlook.office365.com (2603:10a6:10:3c3::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.32 via Frontend Transport; Wed, 19 Jun 2024 10:22:32 +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 DU2PEPF0001E9C3.mail.protection.outlook.com (10.167.8.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Wed, 19 Jun 2024 10:22:31 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Wed, 19 Jun 2024 12:22:30 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Wed, 19 Jun 2024 12:22:23 +0200 Message-Id: <20240619102227.2013556-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: 19 Jun 2024 10:22:30.0760 (UTC) FILETIME=[978CEE80:01DAC232] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C3:EE_|PR3PR06MB6764:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 69d842a2-d9ea-4515-e2c2-08dc9049ba64 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|36860700010|376011|82310400023|1800799021; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?KbhIE2DeQc53GJgge/DCCM/iZRsRkGl6IlEH9AaXnG8eQte1Pm43b6ruUa4f?= =?us-ascii?Q?yGhHL0MRnbVKlryzmCaad9fPxyap6RD6yinDN9HT7vPhNQXhjspA+gHefEZO?= =?us-ascii?Q?JZdFRy/fRlpnTtwSKXH8q4z8QPcVxE8065FqPWqOCY7tK4/7ygCMKtd30ace?= =?us-ascii?Q?OYHWdlw9zIygjNF6aDJz1frfIcppfl7i/cZAKsmG9QwPxFXEtyXUGaIWn1j/?= =?us-ascii?Q?s42U5P6ALlSlyQMaw2Zn65bCx9JVZqGab/1hx+MJ9WPNcjIZ35piCwkk0KE+?= =?us-ascii?Q?l7DIdnl9bUdO9I91utDsgCUdFbUcEwmjCMWwES8WHy4oVDDkzvMuzq2KPzvN?= =?us-ascii?Q?bcqUT6hqfQy2TStS9XX8SEauahM0sxp+wgENhb0eoT/ERmYbcydk/QhCEwjf?= =?us-ascii?Q?ubU5wG5i3nh9Itql3JpAdNy5zyuykDq3f2DOnoX5z8Uyn34ACCi8uaB8DjTs?= =?us-ascii?Q?2UoaEpm2qSyhAbdYQ6G52ZGWzR3FVd0jZSIEciZgvdPhIjhVjOJsTib8hfgq?= =?us-ascii?Q?pFLHEv8XZ8hUSmmci9k8ggWzsayhsDxwGmpmWVy15BWz5wZG4xUG+9Tw//f/?= =?us-ascii?Q?bncUPvhEOJ1wG/457L8VTWb2cAkn4ABaNNZIDAUqVDGoLaaknvEuAScA/a+5?= =?us-ascii?Q?6y/6f8VYFfgpkZZQdjMM55mCaMEJgosx8OzL7ee5y3AE+fX0e27GxlGjrJgT?= =?us-ascii?Q?YZI0o96lfTO5FDdnpMvnusSepgiJcrkjSBvNNro4ZgUm+Op468E8yX7qz5cS?= =?us-ascii?Q?Gfucl/hG0lXwGChjnd1uw/LLyjFYQ+zT5Rbg2gyZM/LJzZcUlKnsTuq/1Jv5?= =?us-ascii?Q?xo+OmMqraGCUHMiBOur8X/wIzbKMGwdbnYblml34BmpXcs2ThtmxutI5PHa8?= =?us-ascii?Q?n9vtvhwxUdnfpj9tTFUuuNCcFsdgEHcngfWErxuCzs/ioY1w9eJ2VwnkC1KS?= =?us-ascii?Q?JYgIcJEIZanlrB1V5vfthNFDy1Zepo6GLSKj0cmXMLRcLthYBBkJTrnB4spa?= =?us-ascii?Q?akfBrpkXstcCAhOZikEyM5LGhI/e0auVK0zHNN5atRe1fxB78upa7Xh+QU5B?= =?us-ascii?Q?axulTmgh+TRbNJ0d3Z3seLuoZoSUqy1xSOKtkfvwk5QhPRXfU5dJHyMEyott?= =?us-ascii?Q?al1UA/YTtxMEaDUHjHdF4mGv+LYSKalsS9yofBSrdvmkfLQKrScDwcdhaTWH?= =?us-ascii?Q?xaMF2nUbmzI0zmwtTfOO+nLB7R7lLkYDWGqTFinmEwZx+apdkTO9q4rXhVQB?= =?us-ascii?Q?7riLpaOtMd4mSX920ooRb9sLGKPVG5zkI4WrtnT2la3cgUy+aU8zYzCc465t?= =?us-ascii?Q?68K47fQqGXBLwqvTXSNcgJ86V/cG4qXwNbltJw6HRi/dHFDB8YibPVXF3mm5?= =?us-ascii?Q?/qsIG5n+awTmSOTA1A1j8X7fkciRBPsRrVyEqUP+jI31ITB7jA=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:ErrorRetry; CAT:NONE; SFS:(13230037)(36860700010)(376011)(82310400023)(1800799021); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 10:22:31.1610 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 69d842a2-d9ea-4515-e2c2-08dc9049ba64 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: DU2PEPF0001E9C3.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR06MB6764 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_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: Wed, 19 Jun 2024 14:57:50 +0200 Subject: [OSS-Tools] [PATCH platsch V5 1/5] 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: , Cc: bsp-development.geo@leica-geosystems.com 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. 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