From: Yegor Yefremov Date: Thu, 19 Apr 2012 15:39:53 +0000 (+0200) Subject: Signed-off-by: Yegor Yefremov X-Git-Tag: 0.1~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d2964c5ffbf2a4a319893ac46f26276e4121c92;p=profile%2Fivi%2Fcan-utils.git Signed-off-by: Yegor Yefremov Signed-off-by: Oliver Hartkopp --- diff --git a/candump.c b/candump.c index 5ba9431..ac51192 100644 --- 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; }