j1939spy: convert towards kernel coding style
parent
46fae98b76
commit
51ee436e75
|
|
@ -267,7 +267,7 @@ int main(int argc, char **argv)
|
|||
tdut = ttmp;
|
||||
goto abs_time;
|
||||
} else if ('a' == s.time) {
|
||||
abs_time:
|
||||
abs_time:
|
||||
printf("(%lu.%04lu)", tdut.tv_sec, tdut.tv_usec / 100);
|
||||
} else if ('A' == s.time) {
|
||||
struct tm tm;
|
||||
|
|
@ -288,7 +288,7 @@ int main(int argc, char **argv)
|
|||
printf("!%u ", priority);
|
||||
|
||||
printf("[%i%s]", len, (msg.msg_flags & MSG_TRUNC) ? "..." : "");
|
||||
for (j = 0; j < len; ) {
|
||||
for (j = 0; j < len;) {
|
||||
unsigned int end = j + 4;
|
||||
if (end > len)
|
||||
end = len;
|
||||
|
|
@ -302,4 +302,3 @@ int main(int argc, char **argv)
|
|||
free(buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue