summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-11-21 11:50:42 +0530
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-29 17:24:41 -0600
commit4f8ac347f392a101ae098ec2d52bcd7c0e4c3bb6 (patch)
treeb2a141f491feae6cf35b5a4e055e205fb3e24825
parente5d60243f991e19cc43c58fcfaead51f837d6c1f (diff)
downloadrtems-4f8ac347f392a101ae098ec2d52bcd7c0e4c3bb6.tar.bz2
libcsupport: readlink: add c99 'restrict' keyword
Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
-rw-r--r--cpukit/libcsupport/src/readlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/readlink.c b/cpukit/libcsupport/src/readlink.c
index 4abc68a955..c627627fd5 100644
--- a/cpukit/libcsupport/src/readlink.c
+++ b/cpukit/libcsupport/src/readlink.c
@@ -25,7 +25,8 @@
/**
* POSIX 1003.1b - X.X.X - XXX
*/
-ssize_t readlink( const char *path, char *buf, size_t bufsize )
+ssize_t readlink( const char *__restrict path, char *__restrict buf,
+ size_t bufsize )
{
ssize_t rv = 0;
rtems_filesystem_eval_path_context_t ctx;