summaryrefslogtreecommitdiff
path: root/module/can327.c
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2022-05-21 00:58:37 +0200
committernorly <ny-git@enpas.org>2022-05-31 13:48:16 +0200
commit850314679973283af02d1dc802c4670ca3350cdd (patch)
tree15901d485801191447b48215ed1e240e8b0a8ec4 /module/can327.c
parentef6f717cc91f00fda175829cfe9ea3e26c49c283 (diff)
Make elm327_rxbuf_cmp() return bool
Diffstat (limited to 'module/can327.c')
-rw-r--r--module/can327.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/can327.c b/module/can327.c
index 97ca7e1..0ff377a 100644
--- a/module/can327.c
+++ b/module/can327.c
@@ -336,7 +336,7 @@ static inline void elm327_uart_side_failure(struct can327 *elm)
* The reason to use strings is so we can easily include them in the C code,
* and to avoid hardcoding lengths.
*/
-static inline int elm327_rxbuf_cmp(const u8 *buf, size_t nbytes, const char *reference)
+static inline bool elm327_rxbuf_cmp(const u8 *buf, size_t nbytes, const char *reference)
{
size_t ref_len = strlen(reference);