From 776baf0c21deac174857d2c86d163ee085f7f06c Mon Sep 17 00:00:00 2001
From: Sau P <sau@yaaama.xyz>
Date: Wed, 20 Nov 2024 00:16:50 +0000
Subject: [PATCH] fix(display): Specify void

Empty parameters for a function is undefined behaviour.
---
 source/display.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/source/display.c b/source/display.c
index 407055e..070c8d3 100644
--- a/source/display.c
+++ b/source/display.c
@@ -259,7 +259,7 @@ void exitcurses(void) {
 	fflush(stdout);
 }
 
-void force_window(){
+void force_window(void){
 	switch(input_mode){
 		case INPUT_CHANGE:
 			current_window = &wresult;
@@ -272,7 +272,7 @@ void force_window(){
 	}
 }
 
-static inline void display_help() {
+static inline void display_help(void) {
 	// XXX: this could be optimized by only overriding the buffer if theres an actual
 	// change
 	werase(whelp);
@@ -287,7 +287,7 @@ static inline void display_help() {
 	do_press_any_key = true;
 }
 
-static inline void display_case(){
+static inline void display_case(void){
 	wmove(wcase, 0, 0);
 	wattron(wcase, COLOR_PAIR(COLOR_PAIR_CASE));
 	waddstr(wcase, (caseless ? "Case: OFF" : "Case:  ON"));
@@ -326,7 +326,7 @@ static inline void display_frame(const bool border_only) {
 	wattroff(stdscr, COLOR_PAIR(COLOR_PAIR_FRAME));
 }
 
-static inline void display_mode() {
+static inline void display_mode(void) {
 	werase(wmode);
 
 	for(int i = 0; i < FIELDS; ++i) {
@@ -344,7 +344,7 @@ static inline void display_mode() {
 	}
 }
 
-static inline void display_command_field() {
+static inline void display_command_field(void) {
 	werase(winput);
 	wattron(winput, COLOR_PAIR(COLOR_PAIR_PROMPT));
 	mvwaddstr(winput, 0, 0, prompts[input_mode]);
@@ -354,7 +354,7 @@ static inline void display_command_field() {
 	display_cursor();
 }
 
-static inline void display_results() {
+static inline void display_results(void) {
 	int	  i;
 	char *s;
 	int	  screenline;			/* screen line number */