mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 11:43:07 +02:00
pb12: silence -Wmissing-prototypes warnings
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <assert.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) & 0xff);
|
||||||
*(options++) = byte & (byte << 1);
|
*(options++) = byte & (byte << 1);
|
||||||
@@ -13,7 +13,7 @@ void opts(uint8_t byte, uint8_t *options)
|
|||||||
*(options++) = byte & (byte >> 1);
|
*(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) {
|
while (count) {
|
||||||
ssize_t written = write(fd, buf, count);
|
ssize_t written = write(fd, buf, count);
|
||||||
if (written < 0) {
|
if (written < 0) {
|
||||||
|
Reference in New Issue
Block a user