Skip to content

Commit

Permalink
Merge pull request #591 from orbea/missing-prototypes
Browse files Browse the repository at this point in the history
pb12: silence -Wmissing-prototypes warnings
  • Loading branch information
LIJI32 authored Feb 29, 2024
2 parents e79f2c1 + 8017a4a commit 6edc358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BootROMs/pb12.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
#include <unistd.h>
#include <assert.h>

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);
*(options++) = byte | ((byte >> 1) & 0xff);
*(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) {
Expand Down

0 comments on commit 6edc358

Please sign in to comment.