1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2026-07-11 04:06:18 -04:00

Fix API usage

This commit is contained in:
Alex Kotov 2022-01-20 03:19:14 +05:00
parent 990fa24633
commit f0d3cf4001
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
static char buffer[BUFFER_SIZE];
static size_t buffer_index = 0;
static void my_putchar(const char chr)
static void my_putchar(const char chr, void *arg __attribute__((unused)))
{
if (buffer_index >= BUFFER_SIZE) abort();
buffer[buffer_index++] = chr;

View file

@ -10,7 +10,7 @@
static char buffer[BUFFER_SIZE];
static size_t buffer_index = 0;
static void my_putchar(const char chr)
static void my_putchar(const char chr, void *arg __attribute__((unused)))
{
if (buffer_index >= BUFFER_SIZE) abort();
buffer[buffer_index++] = chr;