summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 16:05:46 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 16:05:46 +0200
commit08ce54211ce4b8d6092321ca1b28773a680ddc45 (patch)
tree9cf7eb2702a408743d59e207e24f8fb1e5ada31d /src/buffer.c
parent795ffc5e62e8ba383575dbcd9943a580d4bd3358 (diff)
Added missing function prototype signatures.
Corrected socket_broadcast name to socket_broadcast4 in socket_if.h. Added const to fmt_str.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 036b298..f094213 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -21,7 +21,7 @@ void buffer_init(buffer *s, ssize_t (*op)(), int fd, char *buf, size_t len)
s->n = len;
}
-ssize_t buffer_0_read(int fd, char *buf, size_t len)
+static ssize_t buffer_0_read(int fd, char *buf, size_t len)
{
if (buffer_flush(buffer_1) == -1) return -1;
return read(fd, buf, len);