canfdtest: print_frame()/print_compare(): mark parameters "struct can_frame *" as const
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/224/head
parent
29605e3314
commit
ff3d0e0d05
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue