diff options
Diffstat (limited to 'extcap/sshdump.c')
-rw-r--r-- | extcap/sshdump.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extcap/sshdump.c b/extcap/sshdump.c index e4cfc793..8da2bb37 100644 --- a/extcap/sshdump.c +++ b/extcap/sshdump.c @@ -65,7 +65,7 @@ enum { OPT_REMOTE_NOPROM }; -static struct ws_option longopts[] = { +static const struct ws_option longopts[] = { EXTCAP_BASE_OPTIONS, { "help", ws_no_argument, NULL, OPT_HELP}, { "version", ws_no_argument, NULL, OPT_VERSION}, @@ -196,7 +196,7 @@ static ssh_channel run_ssh_command(ssh_session sshs, const char* capture_command g_string_append_printf(ifaces_string, "-i %s ", quoted_iface); ifaces_array_num++; } - ifaces = g_string_free(ifaces_string, false); + ifaces = g_string_free(ifaces_string, FALSE); } quoted_filter = g_shell_quote(cfilter ? cfilter : ""); if (count > 0) @@ -306,7 +306,7 @@ static char* interfaces_list_to_filter(GSList* interfaces, unsigned int remote_p } g_string_append_printf(filter, ") and port %u)", remote_port); } - return g_string_free(filter, false); + return g_string_free(filter, FALSE); } static int list_config(char *interface, unsigned int remote_port) @@ -659,13 +659,13 @@ int main(int argc, char *argv[]) // given is always using the default SSH port since there's no remote SSH port // given on the command line to get the extcap arguments. // However the remote SSH port used here is the one given on the command line - // when the capture us started, which is the indended one. + // when the capture us started, which is the intended one. // And this is only happening when no remote filter is specified on the command // line to start the capture. if (remote_filter == NULL) remote_filter = local_interfaces_to_filter(ssh_params->port); filter = concat_filters(extcap_conf->capture_filter, remote_filter); - ssh_params->debug = extcap_conf->debug; + ssh_params_set_log_level(ssh_params, extcap_conf->debug); ret = ssh_open_remote_connection(ssh_params, remote_interface, filter, remote_capture_command_select, remote_capture_command, privilege, noprom, count, extcap_conf->fifo); |