From 226ecb85a98a4f6a9b8726c7b89721a3f700db66 Mon Sep 17 00:00:00 2001 From: Luiz Augusto Von Dentz Date: Fri, 18 Dec 2009 17:46:01 +0200 Subject: [PATCH] obexd: Remove extra space and unnecessary cast. --- obexd/plugins/filesystem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obexd/plugins/filesystem.c b/obexd/plugins/filesystem.c index ae7ceea69..be28914ab 100644 --- a/obexd/plugins/filesystem.c +++ b/obexd/plugins/filesystem.c @@ -139,7 +139,7 @@ static gpointer filesystem_open(const char *name, int oflag, mode_t mode, if (oflag == O_RDONLY) { if (size) - *size = stats.st_size; + *size = stats.st_size; return GINT_TO_POINTER(fd); } @@ -149,7 +149,7 @@ static gpointer filesystem_open(const char *name, int oflag, mode_t mode, if (size == NULL) return GINT_TO_POINTER(fd); - if (buf.f_bsize * buf.f_bavail < (size_t) *size) { + if (buf.f_bsize * buf.f_bavail < *size) { errno = ENOSPC; goto failed; } -- 2.47.3