wbokslag has uploaded this change for review.

View Change

fixed import warnings for stdbool on some gcc versions

Change-Id: I979a95eae70d839e20434cc7f08c196c162671a8
---
M src/tetra_llc_pdu.c
M src/tetra_llc_pdu.h
2 files changed, 13 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-tetra refs/changes/40/33940/1
diff --git a/src/tetra_llc_pdu.c b/src/tetra_llc_pdu.c
index d4a1eb1..52ca354 100644
--- a/src/tetra_llc_pdu.c
+++ b/src/tetra_llc_pdu.c
@@ -24,6 +24,7 @@
#include <string.h>
#include <stdio.h>
#include <errno.h>
+#include <stdbool.h>

#include <osmocom/core/utils.h>

@@ -118,7 +119,7 @@
return ~crc;
}

-static bool tetra_llc_check_fcs(struct tetra_llc_pdu *lpp, uint8_t *buf, int len)
+static int tetra_llc_check_fcs(struct tetra_llc_pdu *lpp, uint8_t *buf, int len)
{
uint32_t computed_fcs = tetra_llc_compute_fcs(buf, len);
return lpp->fcs == computed_fcs;
diff --git a/src/tetra_llc_pdu.h b/src/tetra_llc_pdu.h
index 9b33925..ac1ae19 100644
--- a/src/tetra_llc_pdu.h
+++ b/src/tetra_llc_pdu.h
@@ -1,6 +1,8 @@
#ifndef TETRA_LLC_PDU_H
#define TETRA_LLC_PDU_H

+#include <stdbool.h>
+
#include <osmocom/core/linuxlist.h>

/* Table 21.1 */

To view, visit change 33940. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-tetra
Gerrit-Branch: master
Gerrit-Change-Id: I979a95eae70d839e20434cc7f08c196c162671a8
Gerrit-Change-Number: 33940
Gerrit-PatchSet: 1
Gerrit-Owner: wbokslag <w.bokslag@midnightblue.nl>
Gerrit-MessageType: newchange