diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-09-13 21:09:35 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-09-13 21:09:35 -0400 |
commit | 13cd969552409e05c941829f2aabb15e2f4d9a1f (patch) | |
tree | 5e104dd27e5f794d1f083d9a8fea516c9009eb39 /src/unistd | |
parent | 5e9deea0039204f3b29edb1ffe0e30325d456f84 (diff) | |
download | musl-13cd969552409e05c941829f2aabb15e2f4d9a1f.tar.gz musl-13cd969552409e05c941829f2aabb15e2f4d9a1f.tar.xz musl-13cd969552409e05c941829f2aabb15e2f4d9a1f.zip |
fix various errors in function signatures/prototypes found by nsz
Diffstat (limited to 'src/unistd')
-rw-r--r-- | src/unistd/readlink.c | 2 | ||||
-rw-r--r-- | src/unistd/readlinkat.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unistd/readlink.c b/src/unistd/readlink.c index 11f45c01..0c6d3861 100644 --- a/src/unistd/readlink.c +++ b/src/unistd/readlink.c @@ -1,7 +1,7 @@ #include <unistd.h> #include "syscall.h" -int readlink(const char *path, char *buf, size_t bufsize) +ssize_t readlink(const char *path, char *buf, size_t bufsize) { return syscall(SYS_readlink, path, buf, bufsize); } diff --git a/src/unistd/readlinkat.c b/src/unistd/readlinkat.c index 9565b89a..e9498650 100644 --- a/src/unistd/readlinkat.c +++ b/src/unistd/readlinkat.c @@ -1,7 +1,7 @@ #include <unistd.h> #include "syscall.h" -int readlinkat(int fd, const char *path, char *buf, size_t bufsize) +ssize_t readlinkat(int fd, const char *path, char *buf, size_t bufsize) { return syscall(SYS_readlinkat, fd, path, buf, bufsize); } |