Skip to content

Commit

Permalink
Examples: Reorder config structure designated initialiser.
Browse files Browse the repository at this point in the history
C++ compatibility.
  • Loading branch information
tlsa committed Sep 17, 2021
1 parent d8a97b9 commit 790ec57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/numerical/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ static const cyaml_schema_value_t top_schema = {
* Here we have a very basic config.
*/
static const cyaml_config_t config = {
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
.log_fn = cyaml_log, /* Use the default logging function. */
.mem_fn = cyaml_mem, /* Use the default memory allocator. */
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
};

/* Main entry point from OS. */
Expand Down
2 changes: 1 addition & 1 deletion examples/planner/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ static const cyaml_schema_value_t plan_schema = {
* Here we have a very basic config.
*/
static const cyaml_config_t config = {
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
.log_fn = cyaml_log, /* Use the default logging function. */
.mem_fn = cyaml_mem, /* Use the default memory allocator. */
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
};

/* Main entry point from OS. */
Expand Down

0 comments on commit 790ec57

Please sign in to comment.