mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-06 14:59:53 +02:00
canfdtest: print_frame()/print_compare(): mark parameters "struct can_frame *" as const
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
+2
-2
@@ -76,7 +76,7 @@ static void print_usage(char *prg)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_frame(struct can_frame *frame, int inc)
|
static void print_frame(const struct can_frame *frame, int inc)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ static void print_frame(struct can_frame *frame, int inc)
|
|||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_compare(struct can_frame *exp, struct can_frame *rec, int inc)
|
static void print_compare(const struct can_frame *exp, const struct can_frame *rec, int inc)
|
||||||
{
|
{
|
||||||
printf("expected: ");
|
printf("expected: ");
|
||||||
print_frame(exp, inc);
|
print_frame(exp, inc);
|
||||||
|
|||||||
Reference in New Issue
Block a user