Skip to content

Commit

Permalink
nc_stats.h: Fix implicit stats_* function declarations when building …
Browse files Browse the repository at this point in the history
…with --disable-stats
  • Loading branch information
voetsjoeba committed Jan 15, 2017
1 parent 0f9e1ba commit 1673744
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nc_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ typedef enum stats_server_field {

#define stats_pool_decr_by(_ctx, _pool, _name, _val)

#define stats_pool_set_ts(_ctx, _pool, _name, _val)

#define stats_server_incr(_ctx, _server, _name)

#define stats_server_decr(_ctx, _server, _name)
Expand All @@ -190,6 +192,8 @@ typedef enum stats_server_field {

#define stats_server_decr_by(_ctx, _server, _name, _val)

#define stats_server_set_ts(_ctx, _server, _name, val)

#endif

#define stats_enabled NC_STATS
Expand Down

0 comments on commit 1673744

Please sign in to comment.