Skip to content

Commit

Permalink
Move 'nscd' helper functions out of 'utils'
Browse files Browse the repository at this point in the history
as it's not used anywhere outside 'monitor'.
  • Loading branch information
alexey-tikhonov committed Oct 9, 2024
1 parent 263cb2e commit b5f745f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,6 @@ SSSD_TOOLS_OBJ = \
src/tools/common/sss_tools.c \
src/tools/common/sss_process.c \
src/confdb/confdb_setup.c \
src/util/nscd.c \
$(NULL)

SSSD_LCL_TOOLS_OBJ = \
Expand Down Expand Up @@ -1519,8 +1518,8 @@ endif
sssd_SOURCES = \
src/monitor/monitor.c \
src/monitor/monitor_bootstrap.c \
src/monitor/nscd.c \
src/confdb/confdb_setup.c \
src/util/nscd.c \
$(NULL)
sssd_LDADD = \
$(SSSD_LIBS) \
Expand Down
3 changes: 3 additions & 0 deletions src/monitor/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1895,6 +1895,9 @@ static void monitor_restart_service(struct mt_svc *svc)
}
}

/* from nscd.c */
errno_t sss_nscd_parse_conf(const char *conf_path);

static void check_nscd(void)
{
int ret;
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions src/util/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,6 @@ bool is_valid_domain_name(const char *domain);
*/
int sss_rand(void);

/* from nscd.c */
errno_t sss_nscd_parse_conf(const char *conf_path);

/* from sss_tc_utf8.c */
char *
sss_tc_utf8_str_tolower(TALLOC_CTX *mem_ctx, const char *s);
Expand Down

0 comments on commit b5f745f

Please sign in to comment.