diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-08-05 22:20:28 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-08-06 02:13:47 +0000 |
commit | b626ad1f853e1e4f2e906acc7477c3924f941556 (patch) | |
tree | cd4a4c86fab24010661e3801113ad4444ed1bcaf /extcap | |
parent | 37649c4d0f0e3c87308687f9000dbe9f627594de (diff) | |
download | wireshark-b626ad1f853e1e4f2e906acc7477c3924f941556.tar.gz |
extcap: move defines from sshdump & ciscodump to ssh-base.
Change-Id: I51769e2427b0119aefe57ebcc08406434ffbfead
Reviewed-on: https://code.wireshark.org/review/16918
Petri-Dish: Michael Mann <mmann78@netscape.net>
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/ciscodump.c | 8 | ||||
-rw-r--r-- | extcap/ssh-base.h | 8 | ||||
-rw-r--r-- | extcap/sshdump.c | 8 |
3 files changed, 8 insertions, 16 deletions
diff --git a/extcap/ciscodump.c b/extcap/ciscodump.c index d8aba54190..f3eedb6a31 100644 --- a/extcap/ciscodump.c +++ b/extcap/ciscodump.c @@ -33,14 +33,6 @@ #include <string.h> #include <fcntl.h> -#ifndef STDERR_FILENO -#define STDERR_FILENO 2 -#endif - -#ifndef STDOUT_FILENO -#define STDOUT_FILENO 1 -#endif - #define CISCODUMP_VERSION_MAJOR "1" #define CISCODUMP_VERSION_MINOR "0" #define CISCODUMP_VERSION_RELEASE "0" diff --git a/extcap/ssh-base.h b/extcap/ssh-base.h index 30c4b73fbe..28a4b08acb 100644 --- a/extcap/ssh-base.h +++ b/extcap/ssh-base.h @@ -27,6 +27,14 @@ #include <libssh/libssh.h> +#ifndef STDERR_FILENO +#define STDERR_FILENO 2 +#endif + +#ifndef STDOUT_FILENO +#define STDOUT_FILENO 1 +#endif + #define SSH_BASE_OPTIONS \ { "remote-host", required_argument, NULL, OPT_REMOTE_HOST}, \ { "remote-port", required_argument, NULL, OPT_REMOTE_PORT}, \ diff --git a/extcap/sshdump.c b/extcap/sshdump.c index f656275d63..278a3a58df 100644 --- a/extcap/sshdump.c +++ b/extcap/sshdump.c @@ -33,14 +33,6 @@ #include <string.h> #include <fcntl.h> -#ifndef STDERR_FILENO -#define STDERR_FILENO 2 -#endif - -#ifndef STDOUT_FILENO -#define STDOUT_FILENO 1 -#endif - #define SSHDUMP_VERSION_MAJOR "1" #define SSHDUMP_VERSION_MINOR "0" #define SSHDUMP_VERSION_RELEASE "0" |