diff options
author | Gregor Beck <gbeck@sernet.de> | 2011-11-07 09:59:37 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-12-03 05:20:30 +0100 |
commit | d74b3f941f5e28bf4a98dab6d4be25fbaab200b7 (patch) | |
tree | 3d8c95e3983380e2f7335780a74c41742a031421 /source3/registry | |
parent | 789aa9aab2b99ae1466a67e3f505abbc67a3e7cb (diff) | |
download | samba-d74b3f941f5e28bf4a98dab6d4be25fbaab200b7.tar.gz samba-d74b3f941f5e28bf4a98dab6d4be25fbaab200b7.tar.bz2 samba-d74b3f941f5e28bf4a98dab6d4be25fbaab200b7.zip |
lib/util: factor out tdb_data_is_empty
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Dec 3 05:20:30 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_db.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 06251e01f9..965d121649 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -541,10 +541,6 @@ static bool tdb_data_read_cstr(TDB_DATA *buf, char **result) return false; } -static bool tdb_data_is_empty(TDB_DATA d) { - return (d.dptr == NULL) || (d.dsize == 0); -} - static bool tdb_data_is_cstr(TDB_DATA d) { if (tdb_data_is_empty(d) || (d.dptr[d.dsize-1] != '\0')) { return false; |