1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:47:45 +00:00

Userland: Mark compilation-unit-only functions as static

This enables a nice warning in case a function becomes dead code.
This commit is contained in:
Ben Wiederhake 2020-08-10 23:48:37 +02:00 committed by Andreas Kling
parent 5574d45eda
commit 0248ddc427
22 changed files with 85 additions and 83 deletions

View file

@ -44,7 +44,7 @@ int target_day;
int current_year;
int current_month;
void append_to_print(char* buffer, int row, int column, char* text)
static void append_to_print(char* buffer, int row, int column, char* text)
{
int starting_point = (line_width * row) + (column * column_width);
for (int i = 0; text[i] != '\0'; i++) {
@ -52,7 +52,7 @@ void append_to_print(char* buffer, int row, int column, char* text)
}
}
void insert_month_to_print(int column, int month, int year)
static void insert_month_to_print(int column, int month, int year)
{
int printing_column = column;
int printing_row = 0;
@ -95,7 +95,7 @@ void insert_month_to_print(int column, int month, int year)
}
}
void clean_buffers()
static void clean_buffers()
{
for (int i = 1; i < line_width * line_count; ++i) {
print_buffer[i - 1] = i % line_width == 0 ? '\n' : ' ';