diff options
| author | Alejandro Colomar <alx@kernel.org> | 2025-03-14 18:46:51 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-03-14 18:47:24 +0100 |
| commit | facbc15869a135d9d47a0884de9299a3e72ef1b5 (patch) | |
| tree | e36811a3f6cd34607e4d3642b5f83107fe758ca2 /man/man3 | |
| parent | c9e9b0fc51a07f559a41c4e1a95da255444cf600 (diff) | |
| download | man-pages-facbc15869a135d9d47a0884de9299a3e72ef1b5.tar.gz | |
man/: EXAMPLES: Add missing 'static'
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3')
| -rw-r--r-- | man/man3/atexit.3 | 2 | ||||
| -rw-r--r-- | man/man3/ctime.3 | 4 | ||||
| -rw-r--r-- | man/man3/fopencookie.3 | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/man/man3/atexit.3 b/man/man3/atexit.3 index f35d268074..ce69deca35 100644 --- a/man/man3/atexit.3 +++ b/man/man3/atexit.3 @@ -137,7 +137,7 @@ that are called when the shared library is unloaded. #include <stdlib.h> #include <unistd.h> \& -void +static void bye(void) { printf("That was all, folks\[rs]n"); diff --git a/man/man3/ctime.3 b/man/man3/ctime.3 index c2d14269ca..e23a70c04e 100644 --- a/man/man3/ctime.3 +++ b/man/man3/ctime.3 @@ -536,7 +536,7 @@ a.out: my_mktime: Invalid argument \& #define is_signed(T) ((T) \-1 < 1) \& -time_t my_mktime(struct tm *tp); +static time_t my_mktime(struct tm *tp); \& int main(int argc, char *argv[]) @@ -575,7 +575,7 @@ main(int argc, char *argv[]) exit(EXIT_SUCCESS); } \& -time_t +static time_t my_mktime(struct tm *tp) { int e, isdst; diff --git a/man/man3/fopencookie.3 b/man/man3/fopencookie.3 index 62ae015e07..a0ae197b0f 100644 --- a/man/man3/fopencookie.3 +++ b/man/man3/fopencookie.3 @@ -303,7 +303,7 @@ struct memfile_cookie { off_t offset; /* Current file offset in buf */ }; \& -ssize_t +static ssize_t memfile_write(void *c, const char *buf, size_t size) { char *new_buff; @@ -328,7 +328,7 @@ memfile_write(void *c, const char *buf, size_t size) return size; } \& -ssize_t +static ssize_t memfile_read(void *c, char *buf, size_t size) { ssize_t xbytes; @@ -348,7 +348,7 @@ memfile_read(void *c, char *buf, size_t size) return xbytes; } \& -int +static int memfile_seek(void *c, off_t *offset, int whence) { off_t new_offset; @@ -371,7 +371,7 @@ memfile_seek(void *c, off_t *offset, int whence) return 0; } \& -int +static int memfile_close(void *c) { struct memfile_cookie *cookie = c; |
