11/*
2- * Copyright (c) 2021, 2022 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2021, 2026 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -109,7 +109,7 @@ static PackageDesc* initPackageDesc(PackageDesc* desc, const char* str,
109109#define POPEN_CALLBACK_USE 1
110110#define POPEN_CALLBACK_IGNORE 0
111111
112- typedef int (* popenCallbackType )(void * , const char * );
112+ typedef int (* popenCallbackType )(void * , char * );
113113
114114static int popenCommand (const char * cmdlineFormat , const char * arg ,
115115 popenCallbackType callback , void * callbackData ) {
@@ -220,13 +220,13 @@ static char* concat(const char *x, const char *y) {
220220}
221221
222222
223- static int initRpmPackage (void * desc , const char * str ) {
223+ static int initRpmPackage (void * desc , char * str ) {
224224 initPackageDesc ((PackageDesc * )desc , str , PACKAGE_TYPE_RPM );
225225 return POPEN_CALLBACK_IGNORE ;
226226}
227227
228228
229- static int initDebPackage (void * desc , const char * str ) {
229+ static int initDebPackage (void * desc , char * str ) {
230230 char * colonChrPos = strchr (str , ':' );
231231 if (colonChrPos ) {
232232 * colonChrPos = 0 ;
@@ -238,7 +238,7 @@ static int initDebPackage(void* desc, const char* str) {
238238
239239#define LAUNCHER_LIB_NAME "/libapplauncher.so"
240240
241- static int findLauncherLib (void * launcherLibPath , const char * str ) {
241+ static int findLauncherLib (void * launcherLibPath , char * str ) {
242242 char * buf = 0 ;
243243 const size_t strLen = strlen (str );
244244 const size_t launcherLibNameLen = strlen (LAUNCHER_LIB_NAME );
0 commit comments