mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 11:17:37 +01:00
Mark local functions as static
Warned-by: gcc
This commit is contained in:
parent
e35d9141dc
commit
25278891d8
@ -79,7 +79,7 @@ sys_close_range(unsigned int fd, unsigned int max_fd, unsigned int flags)
|
|||||||
* Close all file descriptors greater than or equal to lowfd.
|
* Close all file descriptors greater than or equal to lowfd.
|
||||||
* This is the expensive (fallback) method.
|
* This is the expensive (fallback) method.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
closefrom_fallback(int lowfd)
|
closefrom_fallback(int lowfd)
|
||||||
{
|
{
|
||||||
long fd, maxfd;
|
long fd, maxfd;
|
||||||
|
@ -37,7 +37,7 @@ struct test_cookie {
|
|||||||
int index;
|
int index;
|
||||||
};
|
};
|
||||||
|
|
||||||
int
|
static int
|
||||||
test_readfn(void *cookie, char *buf, int size)
|
test_readfn(void *cookie, char *buf, int size)
|
||||||
{
|
{
|
||||||
struct test_cookie *tc = cookie;
|
struct test_cookie *tc = cookie;
|
||||||
@ -56,7 +56,7 @@ test_readfn(void *cookie, char *buf, int size)
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
test_writefn(void *cookie, const char *buf, int size)
|
test_writefn(void *cookie, const char *buf, int size)
|
||||||
{
|
{
|
||||||
struct test_cookie *tc = cookie;
|
struct test_cookie *tc = cookie;
|
||||||
@ -75,7 +75,7 @@ test_writefn(void *cookie, const char *buf, int size)
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
off_t
|
static off_t
|
||||||
test_seekfn(void *cookie, off_t offset, int whence)
|
test_seekfn(void *cookie, off_t offset, int whence)
|
||||||
{
|
{
|
||||||
struct test_cookie *tc = cookie;
|
struct test_cookie *tc = cookie;
|
||||||
@ -95,7 +95,7 @@ test_seekfn(void *cookie, off_t offset, int whence)
|
|||||||
return tc->index;
|
return tc->index;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
test_closefn(void *cookie)
|
test_closefn(void *cookie)
|
||||||
{
|
{
|
||||||
struct test_cookie *tc = cookie;
|
struct test_cookie *tc = cookie;
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include <md5.h>
|
#include <md5.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_md5(const char *digest, const char *string)
|
test_md5(const char *digest, const char *string)
|
||||||
{
|
{
|
||||||
char result[MD5_DIGEST_STRING_LENGTH];
|
char result[MD5_DIGEST_STRING_LENGTH];
|
||||||
|
Loading…
Reference in New Issue
Block a user