summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt_read.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-09-02 15:01:41 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-09-02 15:01:41 +0200
commit69af0d3a3c62120d6571b8e078c1b0d52397785f (patch)
treef3f6aa99b7a82cf2d545ceb09fd74e60aee8f06b /runtime/librsgt_read.c
parent743a2ddf9f5bd4c9eca521d45c184788c93b4ce8 (diff)
parentaac3d9aed8ff45b191b207f3e8c22bf602f54774 (diff)
downloadrsyslog-69af0d3a3c62120d6571b8e078c1b0d52397785f.tar.gz
rsyslog-69af0d3a3c62120d6571b8e078c1b0d52397785f.tar.bz2
rsyslog-69af0d3a3c62120d6571b8e078c1b0d52397785f.zip
Merge branch 'v7-stable'
Diffstat (limited to 'runtime/librsgt_read.c')
-rw-r--r--runtime/librsgt_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/librsgt_read.c b/runtime/librsgt_read.c
index a6e33160..a9a50798 100644
--- a/runtime/librsgt_read.c
+++ b/runtime/librsgt_read.c
@@ -249,7 +249,7 @@ rsgt_tlvRecRead(FILE *fp, tlvrecord_t *rec)
NEXTC;
rec->hdr[0] = c;
rec->tlvtype = c & 0x1f;
- if(c & 0x80) { /* tlv16? */
+ if(c & RSGT_FLAG_TLV16) { /* tlv16? */
rec->lenHdr = 4;
NEXTC;
rec->hdr[1] = c;
@@ -290,7 +290,7 @@ rsgt_tlvDecodeSUBREC(tlvrecord_t *rec, uint16_t *stridx, tlvrecord_t *newrec)
c = rec->data[(*stridx)++];
newrec->hdr[0] = c;
newrec->tlvtype = c & 0x1f;
- if(c & 0x80) { /* tlv16? */
+ if(c & RSGT_FLAG_TLV16) { /* tlv16? */
newrec->lenHdr = 4;
if(rec->tlvlen == *stridx) {r=RSGTE_LEN; goto done;}
c = rec->data[(*stridx)++];