diff options
author | Volker Lendecke <vl@samba.org> | 2010-11-16 16:09:04 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-11-17 12:17:21 +0100 |
commit | 705d93d2ad3fffbe69fe19d521631bf6e249e4f1 (patch) | |
tree | ed318c2249598f0332e0ba159c9872f4c1e87942 /source3/winbindd | |
parent | 3e055cc830eedaddf73456a31c5eeed2b3e9a00f (diff) | |
download | samba-705d93d2ad3fffbe69fe19d521631bf6e249e4f1.tar.gz samba-705d93d2ad3fffbe69fe19d521631bf6e249e4f1.tar.xz samba-705d93d2ad3fffbe69fe19d521631bf6e249e4f1.zip |
s3: Remove some unused code
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_async.c | 21 | ||||
-rw-r--r-- | source3/winbindd/winbindd_proto.h | 2 |
2 files changed, 0 insertions, 23 deletions
diff --git a/source3/winbindd/winbindd_async.c b/source3/winbindd/winbindd_async.c index 8e53892bd83..9a565bffd02 100644 --- a/source3/winbindd/winbindd_async.c +++ b/source3/winbindd/winbindd_async.c @@ -27,27 +27,6 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_WINBIND -bool print_sidlist(TALLOC_CTX *mem_ctx, const struct dom_sid *sids, - uint32_t num_sids, char **result, ssize_t *len) -{ - size_t i; - size_t buflen = 0; - - *len = 0; - *result = NULL; - for (i=0; i<num_sids; i++) { - fstring tmp; - sprintf_append(mem_ctx, result, len, &buflen, - "%s\n", sid_to_fstring(tmp, &sids[i])); - } - - if ((num_sids != 0) && (*result == NULL)) { - return False; - } - - return True; -} - bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr, struct dom_sid **sids, uint32_t *num_sids) { diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index 52e6bfede0f..dbe723bead4 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -57,8 +57,6 @@ NTSTATUS winbindd_lookup_names(TALLOC_CTX *mem_ctx, /* The following definitions come from winbindd/winbindd_async.c */ -bool print_sidlist(TALLOC_CTX *mem_ctx, const struct dom_sid *sids, - uint32_t num_sids, char **result, ssize_t *len); bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr, struct dom_sid **sids, uint32_t *num_sids); |