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:
e7d585a
)
Fixed compilation warning on 64bit architectures.
author
Oliver Hartkopp
<socketcan@hartkopp.net>
Sun, 8 Jul 2007 12:44:12 +0000
(12:44 +0000)
committer
Oliver Hartkopp
<socketcan@hartkopp.net>
Sun, 8 Jul 2007 12:44:12 +0000
(12:44 +0000)
Thanks to Neal Probert for the hint.
cansniffer.c
patch
|
blob
|
history
diff --git
a/cansniffer.c
b/cansniffer.c
index
7479ea3
..
26e54b3
100644
(file)
--- a/
cansniffer.c
+++ b/
cansniffer.c
@@
-508,7
+508,7
@@
int handle_timeo(int fd, long currcms){
char startline[80];
printf("%s%s", CLR_SCREEN, CSR_HOME);
snprintf(startline, 79, "< can-sniffer parameters: l=%ld h=%ld t=%ld >", loop, hold, timeout);
- printf("%s%*s",STARTLINESTR, 79-
strlen(STARTLINESTR), startline);
+ printf("%s%*s",STARTLINESTR, 79-
(int)strlen(STARTLINESTR), startline);
force_redraw = 1;
clearscreen = 0;
}