diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-27 21:43:53 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-27 22:22:12 +0200 |
commit | 25397de589e577e32bb291576b10c18978b5bc4e (patch) | |
tree | 7e03fc2fe8883f53c2102da77fe2de0f1f1922c4 /lib | |
parent | 261d6b0e9bc837520630410b5c016ea043cd8518 (diff) | |
download | samba-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')
-rw-r--r-- | lib/tdb/common/tdb.c | 2 |
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; |