[rtems commit] libcsupport: readlink: add c99 'restrict' keyword
Joel Sherrill
joel at rtems.org
Sat Nov 30 00:06:29 UTC 2013
Module: rtems
Branch: master
Commit: 4f8ac347f392a101ae098ec2d52bcd7c0e4c3bb6
Changeset: http://git.rtems.org/rtems/commit/?id=4f8ac347f392a101ae098ec2d52bcd7c0e4c3bb6
Author: Chirayu Desai <cdesai at cyanogenmod.org>
Date: Thu Nov 21 12:08:42 2013 +0530
libcsupport: readlink: add c99 'restrict' keyword
Signed-off-by: Chirayu Desai <cdesai at cyanogenmod.org>
---
cpukit/libcsupport/src/readlink.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cpukit/libcsupport/src/readlink.c b/cpukit/libcsupport/src/readlink.c
index 4abc68a..c627627 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;
More information about the vc
mailing list