mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 22:40:03 +02:00
cansequence: convert towards kernel coding style
This commit is contained in:
+5
-4
@@ -47,12 +47,15 @@ static struct can_frame frame = {
|
||||
.can_dlc = 1,
|
||||
};
|
||||
static struct can_filter filter[] = {
|
||||
{ .can_id = CAN_ID_DEFAULT, },
|
||||
{
|
||||
.can_id = CAN_ID_DEFAULT,
|
||||
},
|
||||
};
|
||||
|
||||
static void print_usage(char *prg)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [<can-interface>] [Options]\n"
|
||||
fprintf(stderr,
|
||||
"Usage: %s [<can-interface>] [Options]\n"
|
||||
"\n"
|
||||
"cansequence sends CAN messages with a rising sequence number as payload.\n"
|
||||
"When the -r option is given, cansequence expects to receive these messages\n"
|
||||
@@ -77,7 +80,6 @@ static void sig_handler(int signo)
|
||||
signal_num = signo;
|
||||
}
|
||||
|
||||
|
||||
static void do_receive()
|
||||
{
|
||||
uint8_t ctrlmsg[CMSG_SPACE(sizeof(struct timeval)) + CMSG_SPACE(sizeof(__u32))];
|
||||
@@ -188,7 +190,6 @@ static void do_receive()
|
||||
sequence++;
|
||||
if (verbose && !(sequence & sequence_mask))
|
||||
printf("sequence wrap around (%d)\n", sequence_wrap++);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user