diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-03-03 17:34:06 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-03-03 17:34:06 +0100 |
commit | fc1afcc89e142f9c77c0e0da767c0e09dc33628d (patch) | |
tree | 9682c6a1cf41cb69ebc5eb6231c01d7988812ed1 /src | |
parent | d02308502f2d0368235d208c6503884fc3ae974c (diff) | |
download | strongswan-fc1afcc89e142f9c77c0e0da767c0e09dc33628d.tar.bz2 strongswan-fc1afcc89e142f9c77c0e0da767c0e09dc33628d.tar.xz |
The return value of snprintf is int not size_t.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils.c | 2 | ||||
-rw-r--r-- | src/libstrongswan/utils/enumerator.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/libstrongswan/utils.c b/src/libstrongswan/utils.c index 8ee576995..b1b860351 100644 --- a/src/libstrongswan/utils.c +++ b/src/libstrongswan/utils.c @@ -121,7 +121,7 @@ void *memstr(const void *haystack, const char *needle, size_t n) */ bool mkdir_p(const char *path, mode_t mode) { - size_t len; + int len; char *pos, full[PATH_MAX]; pos = full; if (!path || *path == '\0') diff --git a/src/libstrongswan/utils/enumerator.c b/src/libstrongswan/utils/enumerator.c index 7efdd883e..b010f5b92 100644 --- a/src/libstrongswan/utils/enumerator.c +++ b/src/libstrongswan/utils/enumerator.c @@ -76,7 +76,8 @@ static bool enumerate_dir_enum(dir_enum_t *this, char **relative, char **absolute, struct stat *st) { struct dirent *entry = readdir(this->dir); - size_t len, remaining; + size_t remaining; + int len; if (!entry) { @@ -120,7 +121,7 @@ static bool enumerate_dir_enum(dir_enum_t *this, char **relative, */ enumerator_t* enumerator_create_directory(char *path) { - size_t len; + int len; dir_enum_t *this = malloc_thing(dir_enum_t); this->public.enumerate = (void*)enumerate_dir_enum; this->public.destroy = (void*)destroy_dir_enum; |