add const to print_in_middle functions

This commit is contained in:
2025-03-07 14:00:46 +01:00
parent d1e34a5c10
commit 6e9fcd093f
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -106,7 +106,7 @@ void get_input_and_login() {
// Original function
void print_in_middle(WINDOW *win, int starty, int startx, int width,
char *string, chtype color) {
const char *string, chtype color) {
int length, x, y;
float temp;
@@ -131,7 +131,7 @@ void print_in_middle(WINDOW *win, int starty, int startx, int width,
// Wide character version
void wprint_in_middle(WINDOW *win, int starty, int startx, int width,
wchar_t *string, chtype color) {
const wchar_t *string, chtype color) {
int length, x, y;
float temp;