summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-02 12:43:59 +0100
committerGünther Deschner <gd@samba.org>2011-02-02 14:59:19 +0100
commit3bdd2efff8d11448275965b464ac194a2ee0d3ae (patch)
treefeac3a886af943f1dd3a6070c47a1e7df36072a8 /nsswitch
parenta62d67e63975226e7961f16b7be168eb2cd4cd62 (diff)
downloadsamba-3bdd2efff8d11448275965b464ac194a2ee0d3ae.tar.gz
samba-3bdd2efff8d11448275965b464ac194a2ee0d3ae.tar.bz2
samba-3bdd2efff8d11448275965b464ac194a2ee0d3ae.zip
nsswitch: remove unused code from wbinfo.c
Guenther
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wbinfo.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c
index a4b2a3c998..1056fb33e9 100644
--- a/nsswitch/wbinfo.c
+++ b/nsswitch/wbinfo.c
@@ -139,31 +139,6 @@ static bool parse_wbinfo_domain_user(const char *domuser, fstring domain,
return true;
}
-/* Parse string of "uid,sid" or "gid,sid" into separate int and string values.
- * Return true if input was valid, false otherwise. */
-static bool parse_mapping_arg(char *arg, int *id, char **sid)
-{
- char *tmp, *endptr;
-
- if (!arg || !*arg)
- return false;
-
- tmp = strtok(arg, ",");
- *sid = strtok(NULL, ",");
-
- if (!tmp || !*tmp || !*sid || !**sid)
- return false;
-
- /* Because atoi() can return 0 on invalid input, which would be a valid
- * UID/GID we must use strtoul() and do error checking */
- *id = strtoul(tmp, &endptr, 10);
-
- if (endptr[0] != '\0')
- return false;
-
- return true;
-}
-
/* pull pwent info for a given user */
static bool wbinfo_get_userinfo(char *user)
@@ -1862,10 +1837,8 @@ int main(int argc, char **argv, char **envp)
TALLOC_CTX *frame = talloc_stackframe();
poptContext pc;
static char *string_arg;
- char *string_subarg = NULL;
static char *opt_domain_name;
static int int_arg;
- int int_subarg = -1;
int result = 1;
bool verbose = false;
bool use_ntlmv2 = false;