summaryrefslogtreecommitdiffstats
path: root/src/tools/common/sss_tools.c
diff options
context:
space:
mode:
authorJustin Stephenson <jstephen@redhat.com>2017-05-12 23:10:18 -0400
committerLukas Slebodnik <lslebodn@redhat.com>2017-09-25 21:50:21 +0200
commitd2c614143870e6efd4b3ab20c3a55cf714595256 (patch)
treec0fd87110bdf25d0d961a83079c4c68fc58b70ea /src/tools/common/sss_tools.c
parent1024dbcba0c16fb5df5e6d16894a8c7a36dc75f2 (diff)
downloadsssd-d2c614143870e6efd4b3ab20c3a55cf714595256.tar.gz
sssd-d2c614143870e6efd4b3ab20c3a55cf714595256.tar.xz
sssd-d2c614143870e6efd4b3ab20c3a55cf714595256.zip
SSSCTL: Move sss_debuglevel to sssctl debug-level
Move code from sss_debuglevel to sssctl_logs.c and add new debug-logs sssctl command to perform the same task of changing debug level dynamically. POPT_CONTEXT_KEEP_FIRST Flag added to poptGetContext call in sssctl_debug_level() to fix argument parsing. Resolves: https://pagure.io/SSSD/sssd/issue/3057 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/tools/common/sss_tools.c')
-rw-r--r--src/tools/common/sss_tools.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/tools/common/sss_tools.c b/src/tools/common/sss_tools.c
index 97a3caab3..0b676341f 100644
--- a/src/tools/common/sss_tools.c
+++ b/src/tools/common/sss_tools.c
@@ -30,13 +30,6 @@
#include "db/sysdb.h"
#include "tools/common/sss_tools.h"
-struct sss_cmdline {
- const char *exec; /* argv[0] */
- const char *command; /* command name */
- int argc; /* rest of arguments */
- const char **argv;
-};
-
static void sss_tool_print_common_opts(int min_len)
{
fprintf(stderr, _("Common options:\n"));