summaryrefslogtreecommitdiff
path: root/lib/tdb/common
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 21:43:53 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 22:22:12 +0200
commit25397de589e577e32bb291576b10c18978b5bc4e (patch)
tree7e03fc2fe8883f53c2102da77fe2de0f1f1922c4 /lib/tdb/common
parent261d6b0e9bc837520630410b5c016ea043cd8518 (diff)
downloadsamba-25397de589e577e32bb291576b10c18978b5bc4e.tar.gz
samba-25397de589e577e32bb291576b10c18978b5bc4e.tar.bz2
samba-25397de589e577e32bb291576b10c18978b5bc4e.zip
tdb: Fix Coverity ID 2192: NO_EFFECT
(ret < 0) can never be true
Diffstat (limited to 'lib/tdb/common')
-rw-r--r--lib/tdb/common/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/tdb.c b/lib/tdb/common/tdb.c
index a28e8837c8..66be555a06 100644
--- a/lib/tdb/common/tdb.c
+++ b/lib/tdb/common/tdb.c
@@ -993,7 +993,7 @@ _PUBLIC_ int tdb_repack(struct tdb_context *tdb)
bool tdb_write_all(int fd, const void *buf, size_t count)
{
while (count) {
- size_t ret;
+ ssize_t ret;
ret = write(fd, buf, count);
if (ret < 0)
return false;