From 40e520f46009f935d218a4cebe7522d04ba5de99 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sun, 11 Mar 2018 15:37:00 +0100 Subject: [PATCH] coco3: Const'ify strcmp arguments Signed-off-by: Tormod Volden --- Kernel/platform-coco3/libc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/platform-coco3/libc.c b/Kernel/platform-coco3/libc.c index cac25855..ab4f0502 100644 --- a/Kernel/platform-coco3/libc.c +++ b/Kernel/platform-coco3/libc.c @@ -1,10 +1,10 @@ #include "cpu.h" -int strcmp( char *a, char *b ){ +int strcmp( const char *a, const char *b ){ return strncmp(a, b, strlen(a)); } -int strncmp( char *a, char *b, int n){ +int strncmp( const char *a, const char *b, int n){ int ret; while (n--){ ret = *a - *b++; -- 2.34.1