From aed5f73fa8123aa29aa20df26c6f897cbbdfeca6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 19 Nov 2013 17:32:24 +0000 Subject: 2013-11-18 Joel Sherrill * libc/include/stdlib.h: Add prototype of realpath(). * libc/sys/linux/realpath.c: Add restrict keyword. --- newlib/libc/sys/linux/realpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/sys/linux/realpath.c') diff --git a/newlib/libc/sys/linux/realpath.c b/newlib/libc/sys/linux/realpath.c index 8aa5eb445..63793c608 100644 --- a/newlib/libc/sys/linux/realpath.c +++ b/newlib/libc/sys/linux/realpath.c @@ -69,7 +69,7 @@ static int resolve_path(char *path,char *result,char *pos) } -char *realpath(const char *path,char *resolved_path) +char *realpath(const char *__restrict path,char *__restrict resolved_path) { char cwd[PATH_MAX]; char *path_copy; -- cgit v1.2.3