From 8017a4a044dda99a1563ce738e874fb597882a23 Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 28 Feb 2024 19:12:00 -0800 Subject: [PATCH] pb12: silence -Wmissing-prototypes warnings --- BootROMs/pb12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BootROMs/pb12.c b/BootROMs/pb12.c index a022fce..7de3de2 100644 --- a/BootROMs/pb12.c +++ b/BootROMs/pb12.c @@ -5,7 +5,7 @@ #include #include -void opts(uint8_t byte, uint8_t *options) +static void opts(uint8_t byte, uint8_t *options) { *(options++) = byte | ((byte << 1) & 0xff); *(options++) = byte & (byte << 1); @@ -13,7 +13,7 @@ void opts(uint8_t byte, uint8_t *options) *(options++) = byte & (byte >> 1); } -void write_all(int fd, const void *buf, size_t count) { +static void write_all(int fd, const void *buf, size_t count) { while (count) { ssize_t written = write(fd, buf, count); if (written < 0) {