The branch, master has been updated via 8f7f244 lib/util/util_tdb: adhere to coding style for tdb_data_is_empty() from 891258c s3:net registry check: replace rawmemchr by functionally equivalent portable strchr
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 8f7f244200947d36baeabd892b1fecd0bdb88194 Author: Michael Adam <ob...@samba.org> Date: Tue Dec 6 13:46:08 2011 +0100 lib/util/util_tdb: adhere to coding style for tdb_data_is_empty() Autobuild-User: Michael Adam <ob...@samba.org> Autobuild-Date: Tue Dec 6 15:22:08 CET 2011 on sn-devel-104 ----------------------------------------------------------------------- Summary of changes: lib/util/util_tdb.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/util/util_tdb.c b/lib/util/util_tdb.c index 0c30d77..f239797 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); } -- Samba Shared Repository