diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-09 11:25:58 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-10 08:21:41 +0100 |
commit | a056238bcd67ca611a4856c73e1e947c184ac7f5 (patch) | |
tree | 14086670b2f73981822446dc8af8d1552e902078 /source4/nbt_server | |
parent | 5c2a2135c92388659cf5b3d151272671cc2c5383 (diff) | |
download | samba-a056238bcd67ca611a4856c73e1e947c184ac7f5.tar.gz samba-a056238bcd67ca611a4856c73e1e947c184ac7f5.tar.bz2 samba-a056238bcd67ca611a4856c73e1e947c184ac7f5.zip |
s4-nbt_server: remove unused winsdb_get_seqnumber()
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Feb 10 08:21:41 CET 2012 on sn-devel-104
Diffstat (limited to 'source4/nbt_server')
-rw-r--r-- | source4/nbt_server/wins/winsdb.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c index 18c1b725be..346ccc949b 100644 --- a/source4/nbt_server/wins/winsdb.c +++ b/source4/nbt_server/wins/winsdb.c @@ -124,32 +124,6 @@ failed: return 0; } -uint64_t winsdb_get_seqnumber(struct winsdb_handle *h) -{ - int ret; - struct ldb_context *ldb = h->ldb; - struct ldb_dn *dn; - struct ldb_result *res = NULL; - TALLOC_CTX *tmp_ctx = talloc_new(ldb); - uint64_t seqnumber = 0; - - dn = ldb_dn_new(tmp_ctx, ldb, "@BASEINFO"); - if (!dn) goto failed; - - /* find the record in the WINS database */ - ret = ldb_search(ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE, NULL, NULL); - if (ret != LDB_SUCCESS) goto failed; - if (res->count > 1) goto failed; - - if (res->count == 1) { - seqnumber = ldb_msg_find_attr_as_uint64(res->msgs[0], "sequenceNumber", 0); - } - -failed: - talloc_free(tmp_ctx); - return seqnumber; -} - /* return a DN for a nbt_name */ |