mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-11-03 05:33:16 +00:00
Configuration: Fix const and signedness compile warnings
Change-Id: I701559814b2aee6f84f10e612f128da40f6a51c1
This commit is contained in:
@@ -56,7 +56,7 @@ static const char* createConfigTable = {
|
|||||||
static std::string replaceAll(const std::string input, const std::string search, const std::string replace)
|
static std::string replaceAll(const std::string input, const std::string search, const std::string replace)
|
||||||
{
|
{
|
||||||
std::string output = input;
|
std::string output = input;
|
||||||
int index = 0;
|
size_t index = 0;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
index = output.find(search, index);
|
index = output.find(search, index);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
gConfig.setUpdateHook(purgeConfig);
|
gConfig.setUpdateHook(purgeConfig);
|
||||||
|
|
||||||
char *keys[5] = {"key1", "key2", "key3", "key4", "key5"};
|
const char *keys[5] = {"key1", "key2", "key3", "key4", "key5"};
|
||||||
|
|
||||||
for (int i=0; i<5; i++) {
|
for (int i=0; i<5; i++) {
|
||||||
gConfig.set(keys[i],i);
|
gConfig.set(keys[i],i);
|
||||||
|
|||||||
Reference in New Issue
Block a user