Skip to content

Commit

Permalink
avoid compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Zandbelt <hans.zandbelt@openidc.com>
  • Loading branch information
zandbelt committed Dec 20, 2023
1 parent adf943c commit 714a879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ apr_byte_t oidc_metrics_is_valid_classname(apr_pool_t *pool, const char *name, c
*valid_names = NULL;
apr_table_do(_oidc_metrics_add_classnames, &ctx, names, NULL);

return (apr_table_get(names, name) != 0);
return (apr_table_get(names, name) != NULL);
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ extern const oidc_metrics_timing_info_t _oidc_metrics_timings_info[];

void oidc_metrics_timing_add(request_rec *r, oidc_metrics_timing_type_t type, apr_time_t elapsed);

#define OIDC_METRICS_TIMING_VAR apr_time_t _oidc_metrics_tstart;
#define OIDC_METRICS_TIMING_VAR apr_time_t _oidc_metrics_tstart = 0;

#define OIDC_METRICS_TIMING_START(r, cfg) \
OIDC_METRICS_TIMING_VAR \
Expand Down

0 comments on commit 714a879

Please sign in to comment.