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

*** empty log message ***

Rev: src/disconnect.c:1.22
Rev: src/disconnect.h:1.8
Rev: src/gateway_commands.c:1.13
Rev: src/server.c:1.69
parent 6c3ec1d1
......@@ -21,6 +21,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#warning disconnect.c is obsolete
#if 0
#include "disconnect.h"
#include "connection.h"
......@@ -30,8 +32,9 @@
#include "werror.h"
#include "xalloc.h"
struct lsh_string *format_disconnect(int code, const char *msg,
const char *language)
struct lsh_string *
format_disconnect(int code, const char *msg,
const char *language)
{
return ssh_format("%c%i%z%z",
SSH_MSG_DISCONNECT,
......@@ -77,3 +80,4 @@ do_disconnect(struct packet_handler *closure UNUSED,
struct packet_handler disconnect_handler =
{ STATIC_HEADER, do_disconnect };
#endif
......@@ -21,6 +21,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#warning disconnect.h is obsolete
#ifndef LSH_DISCONNECT_H_INCLUDED
#define LSH_DISCONNECT_H_INCLUDED
......
......@@ -127,8 +127,8 @@ gateway_make_connection(struct listen_value *lv,
BLOCK_SIZE,
make_connection_close_handler(connection))->write_buffer->super;
connection->write = make_packet_debug(
make_gateway_pad(connection->raw),
connection->write_packet
= make_packet_debug(make_gateway_pad(connection->raw),
ssh_format("%lz sent", connection->debug_comment));
init_connection_service(connection);
......
......@@ -28,7 +28,6 @@
#include "compress.h"
#include "connection.h"
#include "debug.h"
#include "disconnect.h"
#include "format.h"
#include "keyexchange.h"
#include "read_line.h"
......
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