diff options
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" |