projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef6f717
)
Make elm327_rxbuf_cmp() return bool
author
norly
<ny-git@enpas.org>
Fri, 20 May 2022 22:58:37 +0000
(
00:58
+0200)
committer
norly
<ny-git@enpas.org>
Tue, 31 May 2022 11:48:16 +0000
(13:48 +0200)
module/can327.c
patch
|
blob
|
history
diff --git
a/module/can327.c
b/module/can327.c
index 97ca7e148d334607dddbb7dfe02804d6e04c4374..0ff377ab319710dd3b967ed8f4a951af7be869f0 100644
(file)
--- 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);