Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- login-utils/logindefs.c | 18 ------------------ login-utils/logindefs.h | 1 - 2 files changed, 19 deletions(-) diff --git a/login-utils/logindefs.c b/login-utils/logindefs.c index ebf1a9f3a..18a699d6b 100644 --- a/login-utils/logindefs.c +++ b/login-utils/logindefs.c @@ -51,24 +51,6 @@ static struct item *list = NULL; static void (*logindefs_loader)(void *) = NULL; static void *logindefs_loader_data = NULL; -void free_getlogindefs_data(void) -{ - struct item *ptr; - - ptr = list; - while (ptr) { - struct item *tmp = ptr->next; - - free(ptr->path); - free(ptr->name); - free(ptr->value); - free(ptr); - ptr = tmp; - } - - list = NULL; -} - static void store(const char *name, const char *value, const char *path) { struct item *new = xmalloc(sizeof(struct item)); diff --git a/login-utils/logindefs.h b/login-utils/logindefs.h index 064737c6c..0079cd23c 100644 --- a/login-utils/logindefs.h +++ b/login-utils/logindefs.h @@ -6,7 +6,6 @@ extern void logindefs_set_loader(void (*loader)(void *data), void *data); extern int getlogindefs_bool(const char *name, int dflt); extern unsigned long getlogindefs_num(const char *name, long dflt); extern const char *getlogindefs_str(const char *name, const char *dflt); -extern void free_getlogindefs_data(void); extern int logindefs_setenv(const char *name, const char *conf, const char *dflt); extern int effective_access(const char *path, int mode); extern int get_hushlogin_status(struct passwd *pwd, int force_check); -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html