Fixed compilation warning on 64bit architectures.
authorOliver Hartkopp <socketcan@hartkopp.net>
Sun, 8 Jul 2007 12:44:12 +0000 (12:44 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Sun, 8 Jul 2007 12:44:12 +0000 (12:44 +0000)
Thanks to Neal Probert for the hint.

cansniffer.c

index 7479ea3..26e54b3 100644 (file)
@@ -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;
     }