tools: mark local C functions as static (#120)

This commit is contained in:
link2xt 2020-06-17 02:58:00 +03:00 committed by GitHub
parent 472331b450
commit 79da1db90e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
void usage() static void usage()
{ {
fprintf(stderr, "Usage: blkpack dirname\n"); fprintf(stderr, "Usage: blkpack dirname\n");
} }

View File

@ -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; char c;
mread(fd, &c, 1); mread(fd, &c, 1);