mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 14:29:54 +02:00
j1939spy: convert towards kernel coding style
This commit is contained in:
+2
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user