Skip to content

Commit

Permalink
Core(fix): remove bool typedef in C23 (#430)
Browse files Browse the repository at this point in the history
Also fixes an oversight in 7f27c41.
  • Loading branch information
pastalian authored Dec 3, 2024
1 parent 3e72139 commit 5be3ba1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ SrnRet srn_application_add_server(SrnApplication *app, const char *name){
SrnRet ret;
SrnServerConfig *srv_cfg;

srv_cfg = srn_server_config_new(name);
srv_cfg = srn_server_config_new();
ret = srn_config_manager_read_server_config(app->cfg_mgr, srv_cfg, name);
if (!RET_IS_OK(ret)){
goto ERR;
Expand Down
2 changes: 1 addition & 1 deletion src/filter/filter2.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typedef struct _SrnMessageFilter SrnMessageFilter;
struct _SrnMessageFilter {
const char *name;
void (*init) (void);
SrnRet (*filter) (const SrnMessage *msg);
bool (*filter) (const SrnMessage *msg);
void (*finalize) (void);
};

Expand Down
2 changes: 2 additions & 0 deletions src/inc/srain.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
#include <stdint.h>
#include <glib.h>

#if defined __STDC_VERSION__ && __STDC_VERSION__ <= 201710L
typedef gboolean bool;
#endif

/* General result value */
#define SRN_OK 0
Expand Down

0 comments on commit 5be3ba1

Please sign in to comment.