Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
5c025c32
Commit
5c025c32
authored
Mar 18, 2021
by
frtabu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set libconfig AUTOCONVERT option to true
parent
08274883
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
common/config/libconfig/config_libconfig.c
common/config/libconfig/config_libconfig.c
+2
-1
No files found.
common/config/libconfig/config_libconfig.c
View file @
5c025c32
...
@@ -364,7 +364,8 @@ int config_libconfig_init(char *cfgP[], int numP) {
...
@@ -364,7 +364,8 @@ int config_libconfig_init(char *cfgP[], int numP) {
const
char
*
incp
=
config_get_include_dir
(
&
(
libconfig_privdata
.
cfg
))
;
const
char
*
incp
=
config_get_include_dir
(
&
(
libconfig_privdata
.
cfg
))
;
printf
(
"[LIBCONFIG] Path for include directive set to: %s
\n
"
,
(
incp
!=
NULL
)
?
incp
:
"libconfig defaults"
);
printf
(
"[LIBCONFIG] Path for include directive set to: %s
\n
"
,
(
incp
!=
NULL
)
?
incp
:
"libconfig defaults"
);
/* set convertion option to allow integer to float conversion*/
config_set_auto_convert
(
&
(
libconfig_privdata
.
cfg
),
CONFIG_TRUE
);
/* Read the file. If there is an error, report it and exit. */
/* Read the file. If there is an error, report it and exit. */
if
(
config_read_file
(
&
(
libconfig_privdata
.
cfg
),
libconfig_privdata
.
configfile
)
==
CONFIG_FALSE
)
{
if
(
config_read_file
(
&
(
libconfig_privdata
.
cfg
),
libconfig_privdata
.
configfile
)
==
CONFIG_FALSE
)
{
fprintf
(
stderr
,
"[LIBCONFIG] %s %d file %s - line %d: %s
\n
"
,
__FILE__
,
__LINE__
,
fprintf
(
stderr
,
"[LIBCONFIG] %s %d file %s - line %d: %s
\n
"
,
__FILE__
,
__LINE__
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment