Skip to content

Commit

Permalink
TOOLS: cache-index: skip init
Browse files Browse the repository at this point in the history
`sssctl_cache_index()` doesn't use `sss_tool_ctx` so no need to
initialize it.
  • Loading branch information
alexey-tikhonov committed Sep 4, 2024
1 parent 98d502e commit 58e86ff
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tools/sssctl/sssctl.c
Original file line number Diff line number Diff line change
@@ -333,7 +333,7 @@ int main(int argc, const char **argv)
SSS_TOOL_COMMAND_FLAGS("client-data-restore", "Restore local data from backup", sssctl_client_data_restore, SSS_TOOL_FLAG_SKIP_CMD_INIT),
SSS_TOOL_COMMAND_FLAGS("cache-remove", "Backup local data and remove cached content", sssctl_cache_remove, SSS_TOOL_FLAG_SKIP_CMD_INIT),
SSS_TOOL_COMMAND_FLAGS("cache-expire", "Invalidate cached objects", sssctl_cache_expire, SSS_TOOL_FLAG_SKIP_CMD_INIT|SSS_TOOL_FLAG_SKIP_ROOT_CHECK),
SSS_TOOL_COMMAND("cache-index", "Manage cache indexes", sssctl_cache_index),
SSS_TOOL_COMMAND_FLAGS("cache-index", "Manage cache indexes", sssctl_cache_index, SSS_TOOL_FLAG_SKIP_CMD_INIT),
SSS_TOOL_DELIMITER("Log files tools:"),
SSS_TOOL_COMMAND_FLAGS("logs-remove", "Remove existing SSSD log files", sssctl_logs_remove, SSS_TOOL_FLAG_SKIP_CMD_INIT),
SSS_TOOL_COMMAND_FLAGS("logs-fetch", "Archive SSSD log files in tarball", sssctl_logs_fetch, SSS_TOOL_FLAG_SKIP_CMD_INIT),
2 changes: 1 addition & 1 deletion src/tools/sssctl/sssctl_data.c
Original file line number Diff line number Diff line change
@@ -413,7 +413,7 @@ static errno_t sssctl_cache_index_action(enum sysdb_index_actions action,
}

errno_t sssctl_cache_index(struct sss_cmdline *cmdline,
struct sss_tool_ctx *tool_ctx)
struct sss_tool_ctx *)
{
const char *attr = NULL;
const char *action_str = NULL;

0 comments on commit 58e86ff

Please sign in to comment.