Resolve conversion from ssize_t to int for readlink return value

This commit is contained in:
Christian Göttsche 2020-11-24 17:40:00 +01:00 committed by BenBE
parent 8029e9af04
commit f61e74a4af
3 changed files with 11 additions and 11 deletions

View File

@ -94,11 +94,11 @@ int Compat_openat(const char* dirpath,
#endif /* !HAVE_OPENAT */
int Compat_readlinkat(int dirfd,
const char* dirpath,
const char* pathname,
char* buf,
size_t bufsize) {
ssize_t Compat_readlinkat(int dirfd,
const char* dirpath,
const char* pathname,
char* buf,
size_t bufsize) {
#ifdef HAVE_READLINKAT

View File

@ -50,10 +50,10 @@ int Compat_openat(openat_arg_t dirpath, const char* pathname, int flags);
#endif /* HAVE_OPENAT */
int Compat_readlinkat(int dirfd,
const char* dirpath,
const char* pathname,
char* buf,
size_t bufsize);
ssize_t Compat_readlinkat(int dirfd,
const char* dirpath,
const char* pathname,
char* buf,
size_t bufsize);
#endif /* HEADER_Compat */

View File

@ -371,7 +371,7 @@ char* Platform_getInodeFilename(pid_t pid, ino_t inode) {
struct stat sb;
struct dirent *de;
DIR *dirp;
size_t len;
ssize_t len;
int fd;
char path[PATH_MAX];