Commit 62790fb1 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(init_connection): Initialize flags.

(new_client): Initialize flags.
parent a9866536
/*
* $Id: internal-connections.c,v 0.27 1996/08/02 00:01:12 ceder Exp $
* $Id: internal-connections.c,v 0.28 1996/08/02 19:58:40 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* Abstract routines on the data type Connection.
*/
static char *rcsid = "$Id: internal-connections.c,v 0.27 1996/08/02 00:01:12 ceder Exp $";
static char *rcsid = "$Id: internal-connections.c,v 0.28 1996/08/02 19:58:40 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -83,7 +83,14 @@ init_connection(Connection *conn)
conn->ident_user = EMPTY_STRING;
conn->client_name = EMPTY_STRING;
conn->client_version = EMPTY_STRING;
conn->invisible = FALSE;
conn->flags.invisible = FALSE;
conn->flags.user_active_used = FALSE;
conn->flags.user_absent = FALSE;
conn->flags.reserved3 = FALSE;
conn->flags.reserved4 = FALSE;
conn->flags.reserved5 = FALSE;
conn->flags.reserved6 = FALSE;
conn->flags.reserved7 = FALSE;
conn->username_valid = FALSE;
conn->mux = NULL;
conn->protocol = '\0';
......@@ -184,7 +191,14 @@ new_client(void)
c->ident_user = EMPTY_STRING;
c->client_name = EMPTY_STRING;
c->client_version = EMPTY_STRING;
c->invisible = FALSE;
c->flags.invisible = FALSE;
c->flags.user_active_used = FALSE;
c->flags.user_absent = FALSE;
c->flags.reserved3 = FALSE;
c->flags.reserved4 = FALSE;
c->flags.reserved5 = FALSE;
c->flags.reserved6 = FALSE;
c->flags.reserved7 = FALSE;
c->username_valid = FALSE;
return c;
......
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