Commit d5f8914d authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(init_connection): Don't set the magic field.

(new_client): Ditto.
(kill_client): Ditto.
parent ebc4007a
/*
* $Id: internal-connections.c,v 0.52 2002/11/15 17:15:18 ceder Exp $
* $Id: internal-connections.c,v 0.53 2003/03/15 22:30:05 ceder Exp $
* Copyright (C) 1991-1994, 1996-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -72,7 +72,6 @@ init_connection(Connection *conn)
enum async default_want_async[] = ASYNC_DEFAULT_MESSAGES;
int i;
conn->magic = 0;
conn->prev = NULL;
conn->next = NULL;
conn->pers_no = 0;
......@@ -177,8 +176,6 @@ new_client(void)
c = alloc_connection();
c->magic = CONN_MAGIC_ALLOC;
if (all_connections != NULL)
{
all_connections->prev->next = c;
......@@ -257,8 +254,6 @@ kill_client(Connection *cp)
if ( last_conn == cp )
last_conn = NULL;
cp->magic = CONN_MAGIC_FREE;
s_clear(&cp->unparsed);
s_clear(&cp->what_am_i_doing);
s_clear(&cp->username);
......
Markdown is supported
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