canutils: changed print_usage function to static

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
Michal Lenc 2021-02-16 23:00:51 +01:00 committed by Xiang Xiao
parent 5cddb39b4e
commit 72b3f97e24
2 changed files with 2 additions and 2 deletions

View File

@ -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] <CAN interface>+\n", prg);

View File

@ -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 <device> <can_frame>.\n", prg);