diff options
author | Tim Potter <tpot@samba.org> | 2001-11-23 04:37:41 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-11-23 04:37:41 +0000 |
commit | 3400a3a3ed098dbdc60f05798254e87c2ebbf426 (patch) | |
tree | 3c6fe9eac8179674a3c88bb6945681585fb5e760 /source3 | |
parent | 1a74f88b1fa792d215ce0a284aa96214e8995d66 (diff) | |
download | samba-3400a3a3ed098dbdc60f05798254e87c2ebbf426.tar.gz samba-3400a3a3ed098dbdc60f05798254e87c2ebbf426.tar.bz2 samba-3400a3a3ed098dbdc60f05798254e87c2ebbf426.zip |
Got rid of that stupid parse_domain_user() warning when compiling
winbindd.
(This used to be commit 72060a6f5af505d597f372d550d7f3fe559e5550)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_pam.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c index 57733b5471..9138583096 100644 --- a/source3/nsswitch/winbindd_pam.c +++ b/source3/nsswitch/winbindd_pam.c @@ -25,28 +25,6 @@ #include "winbindd.h" -/* Copy of parse_domain_user from winbindd_util.c. Parse a string of the - form DOMAIN/user into a domain and a user */ - -static void parse_domain_user(char *domuser, fstring domain, fstring user) -{ - char *p; - char *sep = lp_winbind_separator(); - if (!sep) sep = "\\"; - p = strchr(domuser,*sep); - if (!p) p = strchr(domuser,'\\'); - if (!p) { - fstrcpy(domain,""); - fstrcpy(user, domuser); - return; - } - - fstrcpy(user, p+1); - fstrcpy(domain, domuser); - domain[PTR_DIFF(p, domuser)] = 0; - strupper(domain); -} - /* Return a password structure from a username. Specify whether cached data can be returned. */ |