Skip to content

Commit 26801fd

Browse files
make putstring/dputstring const
1 parent 9675913 commit 26801fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/video.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ void setcursor(console* c);
5353
/* Output a null terminated C string at the given cursor coordinates then update the
5454
* cursor coordinates to the end of the string, scrolling the screen if needed.
5555
*/
56-
void putstring(console* c, char* message);
57-
void dputstring(char* message);
56+
void putstring(console* c, const char* message);
57+
void dputstring(const char* message);
5858

5959
/* Output a character to the screen at the given cursor coordinates then update the
6060
* cursor coordinates to the cell after the character, scrolling the screen if needed.

src/video.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void put(console* c, const char n)
9999
terminal_request.response->write(terminal, &n, 1);
100100
}
101101

102-
void dputstring(char* message)
102+
void dputstring(const char* message)
103103
{
104104
for (; *message; ++message) {
105105
outb(0xE9, *message);
@@ -115,7 +115,7 @@ void dputstring(char* message)
115115
* handled by put() and setcursor(), and the internal functions it
116116
* calls.
117117
*/
118-
void putstring(console* c, char* message)
118+
void putstring(console* c, const char* message)
119119
{
120120
dputstring(message);
121121
struct limine_terminal *terminal = terminal_request.response->terminals[0];

0 commit comments

Comments
 (0)