diff --git a/src/lib66/exec/ssexec_service_signal.c b/src/lib66/exec/ssexec_service_signal.c index 9674166597f3116bcd159621efbc4659c46ada11..0b822ca22ef9115ac7641e5afc24e8a49d631d04 100644 --- a/src/lib66/exec/ssexec_service_signal.c +++ b/src/lib66/exec/ssexec_service_signal.c @@ -839,9 +839,6 @@ int ssexec_service_signal(int argc, char const *const *argv, ssexec_t *info) if (opt == -1) break ; switch (opt) { - case 'h' : - info_help(info->help, info->usage) ; - return 0 ; case 'a' : case 'b' : @@ -957,7 +954,7 @@ int ssexec_service_signal(int argc, char const *const *argv, ssexec_t *info) stralloc sa = STRALLOC_ZERO ; if (!sastr_clean_string(&sa, ares[aresid].sa.s + ares[aresid].regex.contents)) - log_dieu(LOG_EXIT_SYS, "clean string") ; + log_dieu(LOG_EXIT_SYS, "clean string") ; { size_t idx = 0 ; diff --git a/src/lib66/exec/ssexec_service_wrapper.c b/src/lib66/exec/ssexec_service_wrapper.c index 31722aaf569ed7975a290074af0717ab9f301ef0..53f6e2989b3f7e471420fac5d86d77865d3befcd 100644 --- a/src/lib66/exec/ssexec_service_wrapper.c +++ b/src/lib66/exec/ssexec_service_wrapper.c @@ -31,7 +31,6 @@ int ssexec_service_wrapper(int argc, char const *const *argv, ssexec_t *info) } int r, n = 0, i = 0 ; - uint8_t ctl = 0 ; ssexec_func_t_ref func = 0 ; char const *nargv[argc + 1] ; @@ -143,27 +142,6 @@ int ssexec_service_wrapper(int argc, char const *const *argv, ssexec_t *info) nargv[n] = 0 ; - if (ctl) { - /* swap the command and options e.g. - * down -f <treename> <-> -f down <treename> */ - if (n > 2) { - /* swap the command and options e.g. - * down -f <-> -f down */ - nargv[n] = nargv[n-1] ; - nargv[n-1] = nargv[0] ; - nargv[++n] = 0 ; - - } else if (nargv[n-1][0] == '-') { - nargv[n++] = nargv[0] ; - nargv[n] = 0 ; - } else { - nargv[n] = nargv[n-1] ; - nargv[n-1] = nargv[0] ; - nargv[++n] = 0 ; - } - - } - r = (*func)(n, nargv, info) ; return r ;