mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 08:06:34 +02:00
Whitespace fixes. Indented the code following Linux styleguide to fix
the mess between tabs and spaces.
This commit is contained in:
+11
-11
@@ -54,17 +54,17 @@
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
char buf[100], timestamp[100], device[100], ascframe[100];
|
||||
struct can_frame cf;
|
||||
char buf[100], timestamp[100], device[100], ascframe[100];
|
||||
struct can_frame cf;
|
||||
|
||||
while (fgets(buf, 99, stdin)) {
|
||||
if (sscanf(buf, "%s %s %s", timestamp, device, ascframe) != 3)
|
||||
return 1;
|
||||
if (parse_canframe(ascframe, &cf))
|
||||
return 1;
|
||||
sprint_long_canframe(ascframe, &cf, 1); /* with ASCII output */
|
||||
printf("%s %s %s\n", timestamp, device, ascframe);
|
||||
}
|
||||
while (fgets(buf, 99, stdin)) {
|
||||
if (sscanf(buf, "%s %s %s", timestamp, device, ascframe) != 3)
|
||||
return 1;
|
||||
if (parse_canframe(ascframe, &cf))
|
||||
return 1;
|
||||
sprint_long_canframe(ascframe, &cf, 1); /* with ASCII output */
|
||||
printf("%s %s %s\n", timestamp, device, ascframe);
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user