diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-17 21:30:39 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-17 21:30:39 -0500 |
commit | f89d9ac364ffdd00352d55a5f9ed840c22332dab (patch) | |
tree | b9d1e173966d105b0bc09cc8592d6151d89396a8 /nslcd | |
parent | 0ac1ff73698b57d06657758519eb9443fec852f9 (diff) |
remove unused cfg stuff
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/cfg.c | 7 | ||||
-rw-r--r-- | nslcd/cfg.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c index 97c4a1b..dc31c6b 100644 --- a/nslcd/cfg.c +++ b/nslcd/cfg.c @@ -458,7 +458,6 @@ static void cfg_defaults(struct nslcd_config *cfg) memset(cfg, 0, sizeof(struct nslcd_config)); handle_yamldir(__FILE__, __LINE__, "", "/var/cache/parabola-hackers/users", cfg); cfg->threads = 5; - cfg->pagesize = 0; cfg->nss_initgroups_ignoreusers = NULL; cfg->nss_min_uid = 0; cfg->nss_nested_groups = 0; @@ -526,11 +525,6 @@ static void cfg_read(const char *filename, struct nslcd_config *cfg) handle_yamldir(filename, lnr, keyword, line, cfg); } /* other options */ - else if (strcasecmp(keyword, "pagesize") == 0) - { - cfg->pagesize = get_int(filename, lnr, keyword, &line); - get_eol(filename, lnr, keyword, &line); - } else if (strcasecmp(keyword, "nss_initgroups_ignoreusers") == 0) { handle_nss_initgroups_ignoreusers(filename, lnr, keyword, line, @@ -585,7 +579,6 @@ static void cfg_dump(void) log_log(LOG_DEBUG, "CFG: threads %d", nslcd_cfg->threads); log_log_config(); - log_log(LOG_DEBUG, "CFG: pagesize %d", nslcd_cfg->pagesize); if (nslcd_cfg->nss_initgroups_ignoreusers != NULL) { /* allocate memory for a comma-separated list */ diff --git a/nslcd/cfg.h b/nslcd/cfg.h index 9a76084..e03240f 100644 --- a/nslcd/cfg.h +++ b/nslcd/cfg.h @@ -54,7 +54,6 @@ struct nslcd_config { int threads; /* the number of threads to start */ - int pagesize; /* set to a greater than 0 to enable handling of paged results with the specified size */ SET *nss_initgroups_ignoreusers; /* the users for which no initgroups() searches should be done */ uid_t nss_min_uid; /* minimum uid for users retrieved */ bool nss_nested_groups; /* whether to expand nested groups */ |