Mark local functions as static

Warned-by: gcc
This commit is contained in:
Guillem Jover
2021-02-19 06:49:24 +01:00
parent e35d9141dc
commit 25278891d8
3 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ struct test_cookie {
int index;
};
int
static int
test_readfn(void *cookie, char *buf, int size)
{
struct test_cookie *tc = cookie;
@@ -56,7 +56,7 @@ test_readfn(void *cookie, char *buf, int size)
return size;
}
int
static int
test_writefn(void *cookie, const char *buf, int size)
{
struct test_cookie *tc = cookie;
@@ -75,7 +75,7 @@ test_writefn(void *cookie, const char *buf, int size)
return size;
}
off_t
static off_t
test_seekfn(void *cookie, off_t offset, int whence)
{
struct test_cookie *tc = cookie;
@@ -95,7 +95,7 @@ test_seekfn(void *cookie, off_t offset, int whence)
return tc->index;
}
int
static int
test_closefn(void *cookie)
{
struct test_cookie *tc = cookie;