diff options
author | Volker Lendecke <vl@samba.org> | 2017-01-26 12:51:24 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-02-15 02:28:16 +0100 |
commit | 5f2c6360bbf248051355eb0c1bac2ac0a3aca424 (patch) | |
tree | 77c36e832a5ef5bd350a7788fd28108c8bd15fa8 /source3/lib | |
parent | 5a03c42af4945b11d80748649b97949e272bbd10 (diff) | |
download | samba-5f2c6360bbf248051355eb0c1bac2ac0a3aca424.tar.gz |
lib: Fix some whitespace
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/winbind_util.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/source3/lib/winbind_util.c b/source3/lib/winbind_util.c index b3ecac15d79..852929ecdc5 100644 --- a/source3/lib/winbind_util.c +++ b/source3/lib/winbind_util.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/CIFS implementation. Winbind Utility functions @@ -71,16 +71,16 @@ bool winbind_lookup_name(const char *dom_name, const char *name, struct dom_sid { struct wbcDomainSid dom_sid; wbcErr result; - enum wbcSidType type; + enum wbcSidType type; result = wbcLookupName(dom_name, name, &dom_sid, &type); if (result != WBC_ERR_SUCCESS) return false; memcpy(sid, &dom_sid, sizeof(struct dom_sid)); - *name_type = (enum lsa_SidType)type; + *name_type = (enum lsa_SidType)type; - return true; + return true; } /* Call winbindd to convert sid to name */ @@ -95,7 +95,7 @@ bool winbind_lookup_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, char *domain_name = NULL; char *account_name = NULL; - memcpy(&dom_sid, sid, sizeof(dom_sid)); + memcpy(&dom_sid, sid, sizeof(dom_sid)); result = wbcLookupSid(&dom_sid, &domain_name, &account_name, &type); if (result != WBC_ERR_SUCCESS) @@ -103,7 +103,7 @@ bool winbind_lookup_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, /* Copy out result */ - if (domain) { + if (domain) { *domain = talloc_strdup(mem_ctx, domain_name); } if (name) { @@ -111,16 +111,16 @@ bool winbind_lookup_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, } *name_type = (enum lsa_SidType)type; - DEBUG(10, ("winbind_lookup_sid: SUCCESS: SID %s -> %s %s\n", + DEBUG(10, ("winbind_lookup_sid: SUCCESS: SID %s -> %s %s\n", sid_string_dbg(sid), domain_name, account_name)); wbcFreeMemory(domain_name); wbcFreeMemory(account_name); - if ((domain && !*domain) || (name && !*name)) { + if ((domain && !*domain) || (name && !*name)) { DEBUG(0,("winbind_lookup_sid: talloc() failed!\n")); return false; - } + } return true; @@ -142,11 +142,11 @@ bool winbind_sid_to_uid(uid_t *puid, const struct dom_sid *sid) struct wbcDomainSid dom_sid; wbcErr result; - memcpy(&dom_sid, sid, sizeof(dom_sid)); + memcpy(&dom_sid, sid, sizeof(dom_sid)); - result = wbcSidToUid(&dom_sid, puid); + result = wbcSidToUid(&dom_sid, puid); - return (result == WBC_ERR_SUCCESS); + return (result == WBC_ERR_SUCCESS); } /* Call winbindd to convert uid to sid */ @@ -173,11 +173,11 @@ bool winbind_sid_to_gid(gid_t *pgid, const struct dom_sid *sid) struct wbcDomainSid dom_sid; wbcErr result; - memcpy(&dom_sid, sid, sizeof(dom_sid)); + memcpy(&dom_sid, sid, sizeof(dom_sid)); - result = wbcSidToGid(&dom_sid, pgid); + result = wbcSidToGid(&dom_sid, pgid); - return (result == WBC_ERR_SUCCESS); + return (result == WBC_ERR_SUCCESS); } /* Call winbindd to convert gid to sid */ @@ -210,7 +210,7 @@ wbcErr wb_is_trusted_domain(const char *domain) wbcFreeMemory(info); } - return result; + return result; } /* Lookup a set of rids in a given domain */ @@ -226,15 +226,15 @@ bool winbind_lookup_rids(TALLOC_CTX *mem_ctx, enum wbcSidType *name_types = NULL; struct wbcDomainSid dom_sid; wbcErr ret; - int i; + int i; memcpy(&dom_sid, domain_sid, sizeof(struct wbcDomainSid)); ret = wbcLookupRids(&dom_sid, num_rids, rids, &dom_name, &namelist, &name_types); - if (ret != WBC_ERR_SUCCESS) { + if (ret != WBC_ERR_SUCCESS) { return false; - } + } *domain_name = talloc_strdup(mem_ctx, dom_name); *names = talloc_array(mem_ctx, const char*, num_rids); @@ -249,7 +249,7 @@ bool winbind_lookup_rids(TALLOC_CTX *mem_ctx, wbcFreeMemory(namelist); wbcFreeMemory(name_types); - return true; + return true; } /* Ask Winbind to allocate a new uid for us */ @@ -428,7 +428,7 @@ bool winbind_uid_to_sid(struct dom_sid *sid, uid_t uid) bool winbind_sid_to_gid(gid_t *pgid, const struct dom_sid *sid) { - return false; + return false; } /* Call winbindd to convert gid to sid */ |