j1939spy: convert towards kernel coding style

pull/468/head
Marc Kleine-Budde 2023-10-17 09:50:26 +02:00
parent 46fae98b76
commit 51ee436e75
1 changed files with 4 additions and 5 deletions

View File

@ -267,7 +267,7 @@ int main(int argc, char **argv)
tdut = ttmp; tdut = ttmp;
goto abs_time; goto abs_time;
} else if ('a' == s.time) { } else if ('a' == s.time) {
abs_time: abs_time:
printf("(%lu.%04lu)", tdut.tv_sec, tdut.tv_usec / 100); printf("(%lu.%04lu)", tdut.tv_sec, tdut.tv_usec / 100);
} else if ('A' == s.time) { } else if ('A' == s.time) {
struct tm tm; struct tm tm;
@ -288,7 +288,7 @@ int main(int argc, char **argv)
printf("!%u ", priority); printf("!%u ", priority);
printf("[%i%s]", len, (msg.msg_flags & MSG_TRUNC) ? "..." : ""); printf("[%i%s]", len, (msg.msg_flags & MSG_TRUNC) ? "..." : "");
for (j = 0; j < len; ) { for (j = 0; j < len;) {
unsigned int end = j + 4; unsigned int end = j + 4;
if (end > len) if (end > len)
end = len; end = len;
@ -302,4 +302,3 @@ int main(int argc, char **argv)
free(buf); free(buf);
return 0; return 0;
} }