Commit b1de0451 authored by Niels Möller's avatar Niels Möller
Browse files

(make_open_tcpip_command): Made non-static.

(open_direct_tcpip): Moved declaration back here, reverting
yesterday's change.

Rev: src/tcpforward_commands.c:1.47
parent 9415d42f
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <assert.h> #include <assert.h>
#include "tcpforward_commands.h" #include "tcpforward.h"
#include "atoms.h" #include "atoms.h"
#include "channel_commands.h" #include "channel_commands.h"
...@@ -41,6 +41,10 @@ ...@@ -41,6 +41,10 @@
/* Forward declarations */ /* Forward declarations */
/* FIXME: Should be static */
struct command_2 open_direct_tcpip;
#define OPEN_DIRECT_TCPIP (&open_direct_tcpip.super.super)
/* FIXME: Should be static */ /* FIXME: Should be static */
struct command_2 remote_listen_command; struct command_2 remote_listen_command;
#define REMOTE_LISTEN (&remote_listen_command.super.super) #define REMOTE_LISTEN (&remote_listen_command.super.super)
...@@ -143,7 +147,7 @@ new_tcpip_channel(struct channel_open_command *c, ...@@ -143,7 +147,7 @@ new_tcpip_channel(struct channel_open_command *c,
return channel; return channel;
} }
static struct command * struct command *
make_open_tcpip_command(int type, make_open_tcpip_command(int type,
struct address_info *port, struct address_info *port,
struct listen_value *peer) struct listen_value *peer)
...@@ -185,12 +189,12 @@ DEFINE_COMMAND2(open_direct_tcpip) ...@@ -185,12 +189,12 @@ DEFINE_COMMAND2(open_direct_tcpip)
struct command_continuation *c, struct command_continuation *c,
struct exception_handler *e UNUSED) struct exception_handler *e UNUSED)
{ {
CAST(address_info, local, a1); CAST(address_info, target, a1);
CAST(listen_value, peer, a2); CAST(listen_value, peer, a2);
COMMAND_RETURN(c, COMMAND_RETURN(c,
make_open_tcpip_command(ATOM_DIRECT_TCPIP, make_open_tcpip_command(ATOM_DIRECT_TCPIP,
local, peer)); target, peer));
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment