summaryrefslogtreecommitdiffstats
path: root/runtime/stream.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-08-19 13:00:27 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-08-19 13:00:27 +0200
commit16fb5cd701d4c12f8ad573dde8ff52c9eaecb79f (patch)
tree5dc39bc0ef0ffb2dc2a36315b7d57a30b9145ef2 /runtime/stream.h
parent192bc01d9e029d86a832a3673f844d78d2a5da96 (diff)
parent9bb9181572d445dd300546113fc617eb549866ba (diff)
downloadrsyslog-16fb5cd701d4c12f8ad573dde8ff52c9eaecb79f.tar.gz
rsyslog-16fb5cd701d4c12f8ad573dde8ff52c9eaecb79f.tar.bz2
rsyslog-16fb5cd701d4c12f8ad573dde8ff52c9eaecb79f.zip
Merge branch 'v4-devel' into beta
Diffstat (limited to 'runtime/stream.h')
-rw-r--r--runtime/stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/stream.h b/runtime/stream.h
index cb368835..64ffb6e1 100644
--- a/runtime/stream.h
+++ b/runtime/stream.h
@@ -131,8 +131,8 @@ typedef struct strm_s {
pthread_cond_t notFull;
pthread_cond_t notEmpty;
pthread_cond_t isEmpty;
- short iEnq;
- short iDeq;
+ unsigned short iEnq; /* this MUST be unsigned as we use module arithmetic (else invalid indexing happens!) */
+ unsigned short iDeq; /* this MUST be unsigned as we use module arithmetic (else invalid indexing happens!) */
short iCnt; /* current nbr of elements in buffer */
struct {
uchar *pBuf;