summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-11-23 04:37:41 +0000
committerTim Potter <tpot@samba.org>2001-11-23 04:37:41 +0000
commit72060a6f5af505d597f372d550d7f3fe559e5550 (patch)
treef149f9338d10a5b2c5c3a06e69e76e0fc0a334ef
parent6ddd8e7bf69d8aee4148cbcf72de55c903d5f0a1 (diff)
downloadsamba-72060a6f5af505d597f372d550d7f3fe559e5550.tar.gz
samba-72060a6f5af505d597f372d550d7f3fe559e5550.tar.xz
samba-72060a6f5af505d597f372d550d7f3fe559e5550.zip
Got rid of that stupid parse_domain_user() warning when compiling
winbindd.
-rw-r--r--source/nsswitch/winbindd_pam.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source/nsswitch/winbindd_pam.c b/source/nsswitch/winbindd_pam.c
index 57733b54717..91385830961 100644
--- a/source/nsswitch/winbindd_pam.c
+++ b/source/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. */