aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/enumerator.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-03-03 17:34:06 +0100
committerTobias Brunner <tobias@strongswan.org>2010-03-03 17:34:06 +0100
commitfc1afcc89e142f9c77c0e0da767c0e09dc33628d (patch)
tree9682c6a1cf41cb69ebc5eb6231c01d7988812ed1 /src/libstrongswan/utils/enumerator.c
parentd02308502f2d0368235d208c6503884fc3ae974c (diff)
downloadstrongswan-fc1afcc89e142f9c77c0e0da767c0e09dc33628d.tar.bz2
strongswan-fc1afcc89e142f9c77c0e0da767c0e09dc33628d.tar.xz
The return value of snprintf is int not size_t.
Diffstat (limited to 'src/libstrongswan/utils/enumerator.c')
-rw-r--r--src/libstrongswan/utils/enumerator.c5
1 files changed, 3 insertions, 2 deletions
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;