From 72b3f97e24af3abf4cbcf1ca21fb009c02306c40 Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Tue, 16 Feb 2021 23:00:51 +0100 Subject: [PATCH] canutils: changed print_usage function to static Signed-off-by: Michal Lenc --- canutils/candump/candump.c | 2 +- canutils/cansend/cansend.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/canutils/candump/candump.c b/canutils/candump/candump.c index 5bea919f6..b040c1542 100644 --- a/canutils/candump/candump.c +++ b/canutils/candump/candump.c @@ -115,7 +115,7 @@ extern int optind, opterr, optopt; static volatile int running = 1; -void print_usage(char *prg) +static void print_usage(char *prg) { fprintf(stderr, "%s - dump CAN bus traffic.\n", prg); fprintf(stderr, "\nUsage: %s [options] +\n", prg); diff --git a/canutils/cansend/cansend.c b/canutils/cansend/cansend.c index a629a4a64..1001b52c8 100644 --- a/canutils/cansend/cansend.c +++ b/canutils/cansend/cansend.c @@ -56,7 +56,7 @@ #include "lib.h" -void print_usage_send(char *prg) +static void print_usage_send(char *prg) { fprintf(stderr, "%s - send CAN-frames via CAN_RAW sockets.\n", prg); fprintf(stderr, "\nUsage: %s .\n", prg);