diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2017-10-14 21:04:14 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-10-14 20:51:18 +0000 |
commit | 2ecc51f28f42644c655d2d86790b90f7a5ba81c7 (patch) | |
tree | 9a70628aab47b83da8ab86742c5ba096e9a83c89 /extcap | |
parent | c2f1ab1cbcc07af13935c037534148b132aec46b (diff) |
Some trivial fixes from running cppcheck.
The packet-per.c intialisation of ext_length is not really
needed - idx could be -1 with or without extension_flag
being set. But it'd be best not to have someone need to
think this through again.
Change-Id: If07f98ac7d7f2619149e35a2a0d75b765839a7ba
Reviewed-on: https://code.wireshark.org/review/23905
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'extcap')
-rw-r--r-- | extcap/ssh-base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extcap/ssh-base.c b/extcap/ssh-base.c index aabf2a8528..f1961dc996 100644 --- a/extcap/ssh-base.c +++ b/extcap/ssh-base.c @@ -77,13 +77,13 @@ ssh_session create_ssh_connection(const char* hostname, const guint16 port, cons } #ifdef HAVE_LIBSSH_USERAUTH_AGENT - g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_INFO, ("Connecting using ssh-agent..."); + g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_INFO, "Connecting using ssh-agent..."); /* Try to authenticate using ssh agent */ if (ssh_userauth_agent(sshs, NULL) == SSH_AUTH_SUCCESS) { g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_INFO, "done"); return sshs; } - g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_INFO, ("failed"); + g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_INFO, "failed"); #endif /* If a public key path has been provided, try to authenticate using it */ |