projects
/
profile
/
ivi
/
can-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba9b189
)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
author
Yegor Yefremov
<yegorslists@googlemail.com>
Thu, 19 Apr 2012 15:39:53 +0000
(17:39 +0200)
committer
Oliver Hartkopp
<socketcan@hartkopp.net>
Thu, 19 Apr 2012 15:39:53 +0000
(17:39 +0200)
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
candump.c
patch
|
blob
|
history
diff --git
a/candump.c
b/candump.c
index
5ba9431
..
ac51192
100644
(file)
--- a/
candump.c
+++ b/
candump.c
@@
-611,7
+611,7
@@
int main(int argc, char **argv)
return 1;
}
- if (nbytes < sizeof(struct can_frame)) {
+ if (
(size_t)
nbytes < sizeof(struct can_frame)) {
fprintf(stderr, "read: incomplete CAN frame\n");
return 1;
}
@@
-627,7
+627,7
@@
int main(int argc, char **argv)
if (nbytes < 0) {
perror("bridge write");
return 1;
- } else if (nbytes < sizeof(struct can_frame)) {
+ } else if (
(size_t)
nbytes < sizeof(struct can_frame)) {
fprintf(stderr,"bridge write: incomplete CAN frame\n");
return 1;
}