From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 04 Jul 2024 11:59:10 +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 1sPJF8-001SwS-1O for lore@lore.pengutronix.de; Thu, 04 Jul 2024 11:59:10 +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 1sPJEy-0003HU-W1; Thu, 04 Jul 2024 11:59:01 +0200 Received: from mail-am6eur05on2082.outbound.protection.outlook.com ([40.107.22.82] 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 1sPJ2z-0002V0-Od; Thu, 04 Jul 2024 11:46:38 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MoWZy0xt9s029KTP3l2m2EZpeXfUj3UznhZi9ZkMO3jmKnsFsRyHhlioaW5/38/43qc3uDMXlwtSTK6LE5ha6LpvFds9C7xwHFzcvGTqt8MdfhWPhO7qYO5uJx33vCdFUQJNYCj5TpQu1Q1tfuVQr6x/Nu0kMKYrtvDWT49zSSmMIo1uXUQk1Z39HxhLVxpO2xhkMEN90mj/3bAwIsWyrqNxFMDaqNgdEf1DkaOkvCR9Cp6/+jqSVWOScsmKnq/qt1LRLJxrL+dUsghw1q4BEGjr4Eu6mZLvDOA7C57n96e6TOJR/eWcn6oNlKxEuFWn7vFAZ15gkbsJ7j0ctsh3uA== 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=LLFJJtpfNfnZR081CE8uRxdAwi0bf2pujpumNBWMTWFqrvW9LXHkIlDFENctDInHp/SBqb6DWZ+wP455ZFm0VPQorvjPIP2WtKgh60959EoegxcPGsHPAMWzaYZ8mxjaIC+49K7Q0cfiC/ljRBlma0aRU9rfk2q09jfbXyiHPn3KpswUuu0lEuboi7ZhZnSAxmU7g3xt3gbUqitjZopw8kcEGPhwI7ALIW+0p+2yOg8OZxwfaDmNVmK/bNQPT2d/l9VRIuiW7lDrf9IybUPSEDypglggkC4DANJ7x9J9a4Ld3rev3Q5E+Qq1CiUpWvOe0FIOgcrVTM3/5e1m+jFYUw== 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=umyBWPz9mGzkY+L6T2Zngjh+lsDGZkiQ+yNbM/wvXAZajYW4jQ16wKhcQIVxlVg8gNuwBnoZpRTo5hTV/Bj7KlAIdW2ceL+CzsISBKUSPvfccUsNR2bhbyAoKr/VDz7CbF8Ma3J3Gn76aifVmAHck+XhSIpetwCYTQyGsVvxLkA= Received: from AM0PR02CA0021.eurprd02.prod.outlook.com (2603:10a6:208:3e::34) by AS1PR06MB8490.eurprd06.prod.outlook.com (2603:10a6:20b:4de::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.25; Thu, 4 Jul 2024 09:46:34 +0000 Received: from AM3PEPF0000A79C.eurprd04.prod.outlook.com (2603:10a6:208:3e:cafe::7f) by AM0PR02CA0021.outlook.office365.com (2603:10a6:208:3e::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.37 via Frontend Transport; Thu, 4 Jul 2024 09:46:34 +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 AM3PEPF0000A79C.mail.protection.outlook.com (10.167.16.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.18 via Frontend Transport; Thu, 4 Jul 2024 09:46:33 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Thu, 4 Jul 2024 11:46:32 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, jie.gu@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Thu, 4 Jul 2024 11:46:26 +0200 Message-Id: <20240704094630.1216852-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: 04 Jul 2024 09:46:32.0862 (UTC) FILETIME=[0D8A13E0:01DACDF7] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM3PEPF0000A79C:EE_|AS1PR06MB8490:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 7dd2dfdc-f824-4f32-c063-08dc9c0e3037 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?NcI7tLOmTv28lc7xIyfKuiEFG9REIsglxHNO6B+BpZMEfKojp97W4LUEk8aM?= =?us-ascii?Q?8tIDWqW0U0raxt0MM0P4/GaU41dQK3Ot5WFuk0iMwDRQDJSG72lZ4H02/lSN?= =?us-ascii?Q?DfDjFNw4YMQUyUcsIf+DD4B51lMT3HVgSj5wGvqpXRxH0AiQf4xRNo8HuyUL?= =?us-ascii?Q?1C5Zg41YVCXUeaoXBbi31/serWoFGeZ3XhUKS6DqDU4EWYLof5m/wZhC9xh8?= =?us-ascii?Q?IRZ77ZazsJyBZaB3ndRfZvw2X0X4bVeKve/prSWMkK+W6LpBN4kzQZz0Yn3a?= =?us-ascii?Q?5M3DBWoGFSczBo9dk6xLdby5BfYbWG03prp3FuYsbRectcPEdyt1eUncLhOt?= =?us-ascii?Q?Kl8nKwuL9W/26LC+iW4Rd6ie62Khe02mX49nt99S778HRqrY5q6QMAFr5CaA?= =?us-ascii?Q?9+OSDR90MZeVLIBikQqV9z26m8V8xkArffyXqmPuU8DKX8SSjBtDCyepbbec?= =?us-ascii?Q?JazBoXTUBy23mTlZfZOUJ+LEusprkDGZobvFK1j46MS1mR9/TP31b8cD2vEC?= =?us-ascii?Q?F0SokVw9KLqwsfpvctVOQn/1K3uZ1KeZBre+0RPdXcEPCZdwXEx6zkhNZX1/?= =?us-ascii?Q?/1nNEHEa/Dl7+HawSTc+XmgQEa5lGuoz5Flk4fI2jU/b/brGT9r98FNLxRZv?= =?us-ascii?Q?tGNFP4od4l9ZvYu+QQtepjUgK/CueO2+y+11WgZSqbosalkB1z0+7sSp1meW?= =?us-ascii?Q?y4mXMFYhGkrvA9xOZk6KX/O7+2PpjZTE7oY0/bKJnVGLTBcKiHrFC2lgtvV7?= =?us-ascii?Q?AazitHSJ39Spgj/WVpbwEByN3efzB0Aed9yBwGhWr9yNxOhR6v4gw1/U28E0?= =?us-ascii?Q?OOyXSXR1TlBVy9+hn/rta1R+zxX5MgNEWycbojq+ziIP5CQqRMSujiJ8MwWx?= =?us-ascii?Q?HAfwE/jxQpw8HBwcRuc9PtGfQoyRH+r+I1p4+Hn06TibgJaCer9Y4hmE+Z4L?= =?us-ascii?Q?16TlqjH2iF0cLpymg14NGUw9HVU7R9qSKi/cEVxp8RSLN+sB19e9NeM5lGSn?= =?us-ascii?Q?uxdNLZ/drLqwn/GMhdGuWWDmhLZhtS8xt5+b/knYzhIuBzBR4M60JIXZ6z2M?= =?us-ascii?Q?aNbFvor6l90qSC9vBzK+en5R6ZK4/MgHDcmhx6/am5uww4cgn5sl0ABdw+ZP?= =?us-ascii?Q?qBaQfSa2pJXGcl6vtDpjKRtVzNA9OLhyySdvjgsq+RE4puiu9sXjXumU+GQL?= =?us-ascii?Q?Nu5R8W23vX39dkoeEhFujcDUj6EUJJ4DttQTWD7useiMK3F8YQO2HEqgWmlS?= =?us-ascii?Q?9nkokI/fAahiLzJV7C5cB0yxd+N1B6n1lRX7yT7s6nLIZOrfC3jFx56vF6CJ?= =?us-ascii?Q?7euD8Myr6ms2j5+7Oi3T+6ZOOLCnWrXyWc5kpigPEuSv7bIs50y4ybiEzaAq?= =?us-ascii?Q?X4rV5SPZjs7121EXQ1z4yqKwzQBxpiUs09BpWK37mSMgfAC7n/+MMHDr01qT?= =?us-ascii?Q?xqh2eGnaLeVOjwOxNX4NZMxz2Ls1q5YI?= 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:(13230040)(36860700013)(1800799024)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2024 09:46:33.0640 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7dd2dfdc-f824-4f32-c063-08dc9c0e3037 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: AM3PEPF0000A79C.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR06MB8490 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.7 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 autolearn=ham autolearn_force=no version=3.4.2 X-Mailman-Approved-At: Thu, 04 Jul 2024 11:58:58 +0200 Subject: [OSS-Tools] [PATCH platsch V6 RESEND 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