From 79da1db90e27c5c2d407291bec0648cb26af239e Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 17 Jun 2020 02:58:00 +0300 Subject: [PATCH] tools: mark local C functions as static (#120) --- tools/blkpack.c | 2 +- tools/common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/blkpack.c b/tools/blkpack.c index 9db0ed2..094b285 100644 --- a/tools/blkpack.c +++ b/tools/blkpack.c @@ -6,7 +6,7 @@ #include #include -void usage() +static void usage() { fprintf(stderr, "Usage: blkpack dirname\n"); } diff --git a/tools/common.c b/tools/common.c index e029df0..e868dda 100644 --- a/tools/common.c +++ b/tools/common.c @@ -16,7 +16,7 @@ void mread(int fd, char *s, int count) } } -void mexpect(int fd, char ec) +static void mexpect(int fd, char ec) { char c; mread(fd, &c, 1);