summaryrefslogtreecommitdiffstats
path: root/source3/locking
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-08-03 11:51:40 +0200
committerJeremy Allison <jra@samba.org>2014-08-06 01:05:14 +0200
commit380c282d440f07ece2abc2c0c1d9aa10939bdd05 (patch)
tree39d362b16f1b283c802cd85aabba6e1a5b8ffc41 /source3/locking
parent64271c493df66f1dc67fae7fa14ec75f49db65af (diff)
downloadsamba-380c282d440f07ece2abc2c0c1d9aa10939bdd05.tar.gz
samba-380c282d440f07ece2abc2c0c1d9aa10939bdd05.tar.xz
samba-380c282d440f07ece2abc2c0c1d9aa10939bdd05.zip
locking: Avoid a pointless cast
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/posix.c b/source3/locking/posix.c
index 9ee59be5d5..4189a2d8e4 100644
--- a/source3/locking/posix.c
+++ b/source3/locking/posix.c
@@ -114,7 +114,7 @@ static bool posix_lock_in_range(off_t *offset_out, off_t *count_out,
* any Win32 locks of length zero. JRA.
*/
- if (count == (off_t)0) {
+ if (count == 0) {
DEBUG(10,("posix_lock_in_range: count = 0, ignoring.\n"));
return False;
}