Skip to content

Commit 2630531

Browse files
committed
proto_hep: replace atomic_ulong with portable atomic_t
This fixes compile error on RedHat/CentOS 7
1 parent 1c4d57d commit 2630531

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

modules/proto_hep/hep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
#define HEP_PROTO_SIP 0x01
5252

5353
static int control_id = -1;
54-
atomic_ulong *hep_failed_retries;
55-
atomic_ulong *hep_last_attempt;
54+
atomic_t *hep_failed_retries;
55+
atomic_t *hep_last_attempt;
5656

5757
struct hep_message_id {
5858
char* proto;

modules/proto_hep/proto_hep.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ int hep_capture_id = 1;
9494
int payload_compression = 0;
9595
int hep_max_retries = 5;
9696
int hep_retry_cooldown = 3600; //seconds
97-
extern atomic_ulong *hep_failed_retries;
98-
extern atomic_ulong *hep_last_attempt;
97+
extern atomic_t *hep_failed_retries;
98+
extern atomic_t *hep_last_attempt;
9999

100100
int homer5_on = 1;
101101
str homer5_delim = {":", 0};
@@ -195,8 +195,8 @@ struct module_exports exports = {
195195
static int mod_init(void)
196196
{
197197
struct {
198-
atomic_ulong hep_failed_retries;
199-
atomic_ulong hep_last_attempt;
198+
atomic_t hep_failed_retries;
199+
atomic_t hep_last_attempt;
200200
} *sh_holders;
201201

202202
/* check if any listeners defined for this proto */

0 commit comments

Comments
 (0)