From 308a3b88c9e59b9065f1af9cdd2e0369cdfd0823 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Fri, 31 Aug 2018 09:21:19 -0400 Subject: thanks tyfkda --- ulib.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ulib.c') diff --git a/ulib.c b/ulib.c index 51a9e74..8e1e1a2 100644 --- a/ulib.c +++ b/ulib.c @@ -5,7 +5,7 @@ #include "x86.h" char* -strcpy(char *s, char *t) +strcpy(char *s, const char *t) { char *os; @@ -24,7 +24,7 @@ strcmp(const char *p, const char *q) } uint -strlen(char *s) +strlen(const char *s) { int n; @@ -68,7 +68,7 @@ gets(char *buf, int max) } int -stat(char *n, struct stat *st) +stat(const char *n, struct stat *st) { int fd; int r; @@ -93,9 +93,10 @@ atoi(const char *s) } void* -memmove(void *vdst, void *vsrc, int n) +memmove(void *vdst, const void *vsrc, int n) { - char *dst, *src; + char *dst; + const char *src; dst = vdst; src = vsrc; -- cgit v1.2.3