summaryrefslogtreecommitdiff
path: root/src/panel/platform.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2024-08-02 08:32:14 +0200
committerMatthieu Herrb <matthieu@herrb.eu>2024-08-02 08:32:14 +0200
commit9627fd587c9aa066d4ce6e852b26950030f9c3cd (patch)
tree50375cab018b3b62076bf4a6a674fca7613db68b /src/panel/platform.c
parent8b6ec6bb08fa9c3b19753acb436bbb8ecfae9233 (diff)
parent7047b6da264e946e77eeee4080d194c807562d68 (diff)
Merge remote-tracking branch 'origin/master' into obsdobsd
Diffstat (limited to 'src/panel/platform.c')
-rw-r--r--src/panel/platform.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/panel/platform.c b/src/panel/platform.c
index 3e5afe3..812e762 100644
--- a/src/panel/platform.c
+++ b/src/panel/platform.c
@@ -68,7 +68,7 @@ SYS_BOARD_INFO Sys_board_info_array[] = {
static int Num_sys_board_type = NUM_SYS_BOARD_TYPES;
SYS_BOARD_INFO *Sys_board_array_base = Sys_board_info_array;
-int FindStringInSeg(unsigned int, char *);
+int FindStringInSeg(unsigned int, const char *);
static unsigned char get_sys_board_type(SYS_BOARD_INFO *, SYS_BOARD_INFO *);
/* Detect the Platform */
@@ -81,7 +81,7 @@ Detect_Platform(void)
}
static int
-Strncmp(char *str1, char *str2, int len)
+Strncmp(const char *str1, char *str2, int len)
{
int i;
@@ -99,7 +99,7 @@ Strncmp(char *str1, char *str2, int len)
}
static char *
-Strcpy(char *dst, char *src)
+Strcpy(char *dst, const char *src)
{
int i;
@@ -113,7 +113,7 @@ Strcpy(char *dst, char *src)
}
static int
-Strlen(char *str)
+Strlen(const char *str)
{
int i;
@@ -135,7 +135,7 @@ Strlen(char *str)
************************************************************************
*/
int
-FindStringInSeg(unsigned int segment_address, char *string_ptr)
+FindStringInSeg(unsigned int segment_address, const char *string_ptr)
{
int string_length = Strlen(string_ptr);
char *psegment_buf;
@@ -186,7 +186,7 @@ get_sys_board_type(SYS_BOARD_INFO * sys_info,
SYS_BOARD_INFO * sys_board_array_base)
{
int index;
- char *xpress_rom_string_ptr = "XpressStart";
+ const char *xpress_rom_string_ptr = "XpressStart";
unsigned int segment = LINUX_ROM_SEGMENT;
/* See if XpressStart is present in the BIOS area.