diff options
author | Michael Adam <obnox@samba.org> | 2011-12-06 13:46:08 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-12-06 15:22:08 +0100 |
commit | 8f7f244200947d36baeabd892b1fecd0bdb88194 (patch) | |
tree | b4da13e099b7f235498ac73703c17d10a24d8f3e /lib | |
parent | 891258cd7043fd9b4ae99324a541cffbce09e27a (diff) | |
download | samba-8f7f244200947d36baeabd892b1fecd0bdb88194.tar.gz samba-8f7f244200947d36baeabd892b1fecd0bdb88194.tar.bz2 samba-8f7f244200947d36baeabd892b1fecd0bdb88194.zip |
lib/util/util_tdb: adhere to coding style for tdb_data_is_empty()
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Dec 6 15:22:08 CET 2011 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/util_tdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/util_tdb.c b/lib/util/util_tdb.c index 0c30d7774d..f239797c47 100644 --- a/lib/util/util_tdb.c +++ b/lib/util/util_tdb.c @@ -46,7 +46,8 @@ bool tdb_data_equal(TDB_DATA t1, TDB_DATA t2) return (memcmp(t1.dptr, t2.dptr, t1.dsize) == 0); } -bool tdb_data_is_empty(TDB_DATA d) { +bool tdb_data_is_empty(TDB_DATA d) +{ return (d.dsize == 0) || (d.dptr == NULL); } |