diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-11-25 17:20:55 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-11-25 17:20:55 +0100 |
commit | a3c81f500a4d952ce93162a730cadee8fbc8116b (patch) | |
tree | ab2dad94763e4045d1d38c1e9a3be94fc15dc68a /runtime/msg.c | |
parent | afafd9e0d7b333c54613670f4b9dbe3ae90ec51d (diff) | |
download | rsyslog-a3c81f500a4d952ce93162a730cadee8fbc8116b.tar.gz rsyslog-a3c81f500a4d952ce93162a730cadee8fbc8116b.tar.bz2 rsyslog-a3c81f500a4d952ce93162a730cadee8fbc8116b.zip |
bugfix: replacements for atomic operations for non-int sized types had problems.
At least one instance of that problem could potentially lead
to abort (inside omfile).
Diffstat (limited to 'runtime/msg.c')
-rw-r--r-- | runtime/msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/msg.c b/runtime/msg.c index f575b86b..82565f18 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -851,7 +851,7 @@ CODESTARTobjDestruct(msg) * that we trim too often when the counter wraps. */ static unsigned iTrimCtr = 1; - currCnt = ATOMIC_INC_AND_FETCH(&iTrimCtr, &mutTrimCtr); + currCnt = ATOMIC_INC_AND_FETCH_unsigned(&iTrimCtr, &mutTrimCtr); if(currCnt % 100000 == 0) { malloc_trim(128*1024); } |