Commit 2f61d7ca authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Use init_priv_bits() instead of DEFAULT_PRIV_BITS.

Use init_conf_type() instead of NULL_CONF_TYPE.
Use param."foo" (from param.h) instead of "FOO".
parent c8a6d914
/*
* $Id: prot-a.c,v 0.24 1994/01/12 01:37:27 ceder Exp $
* $Id: prot-a.c,v 0.25 1994/02/19 04:02:35 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -26,7 +26,7 @@
* Protocol A.
*/
static char *rcsid = "$Id: prot-a.c,v 0.24 1994/01/12 01:37:27 ceder Exp $";
static char *rcsid = "$Id: prot-a.c,v 0.25 1994/02/19 04:02:35 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -55,6 +55,7 @@ USE(rcsid);
#include "prot-a-output.h"
#include "prot-a-parse.h"
#include "isc-parse.h"
#include "param.h"
BUGDECL;
......@@ -236,8 +237,8 @@ prot_a_init(Connection *conn)
conn->string0 = EMPTY_STRING;
conn->c_misc_info_p = NULL;
conn->c_local_text_no_p = NULL;
conn->priv_bits = DEFAULT_PRIV_BITS;
conn->conf_type = NULL_CONF_TYPE;
init_priv_bits(&conn->priv_bits);
init_conf_type(&conn->conf_type);
}
void
......@@ -352,7 +353,8 @@ prot_a_parse_packet(Connection *client)
{
/* Connection not established yet */
prot_a_parse_string(client, &client->c_string0, USERNAME_LEN);
prot_a_parse_string(client, &client->c_string0,
param.username_len);
client->username = client->c_string0; /* Kludge to deal with */
client->c_string0 = EMPTY_STRING; /* "A5B" as first input. */
......
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