Commit 03423aeb authored by Per Cederqvist's avatar Per Cederqvist

(create_oldstyle_username): Remove needless casts.

(login_old): Likewise.
(login): Likewise.
parent ff1b8b2e
/*
* $Id: session.c,v 0.52 1999/06/05 12:19:08 byers Exp $
* $Id: session.c,v 0.53 1999/06/26 15:49:20 ceder Exp $
* Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -34,7 +34,7 @@
#endif
static const char *
rcsid = "$Id: session.c,v 0.52 1999/06/05 12:19:08 byers Exp $";
rcsid = "$Id: session.c,v 0.53 1999/06/26 15:49:20 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -76,7 +76,7 @@ create_oldstyle_username(String *result,
if ( s_strcpy(result, connection->username) != OK )
restart_kom("create_oldstyle_username(): strcpy\n");
if ( s_strcat(result, s_fcrea_str((const unsigned char *)"@")) != OK )
if ( s_strcat(result, s_fcrea_str("@")) != OK )
restart_kom("create_oldstyle_username: s_strcat\n");
if ( s_strcat(result, connection->hostname) != OK )
......@@ -163,20 +163,17 @@ login_old (Pers_no pers_no,
if (!s_empty(active_connection->ident_user))
{
if ( s_strcat(&pers_p->username,
s_fcrea_str((const unsigned char *)"(")) != OK )
if ( s_strcat(&pers_p->username, s_fcrea_str("(")) != OK )
restart_kom("login: s_strcat (\n");
if ( s_strcat(&pers_p->username, active_connection->ident_user) != OK )
restart_kom("login: s_strcat ident_user\n");
if ( s_strcat(&pers_p->username,
s_fcrea_str((const unsigned char *)")")) != OK )
if ( s_strcat(&pers_p->username, s_fcrea_str(")")) != OK )
restart_kom("login: s_strcat )\n");
}
if ( s_strcat(&pers_p->username,
s_fcrea_str((const unsigned char *)"@")) != OK )
if ( s_strcat(&pers_p->username, s_fcrea_str("@")) != OK )
restart_kom("prot_a_parse_packet: s_strcat\n");
if ( s_strcat(&pers_p->username, active_connection->hostname) != OK )
......@@ -259,20 +256,18 @@ login (Pers_no pers_no,
if (!s_empty(active_connection->ident_user))
{
if ( s_strcat(&pers_p->username,
s_fcrea_str((const unsigned char *)"(")) != OK )
if ( s_strcat(&pers_p->username, s_fcrea_str("(")) != OK )
restart_kom("login: s_strcat (\n");
if ( s_strcat(&pers_p->username, active_connection->ident_user) != OK )
restart_kom("login: s_strcat ident_user\n");
if ( s_strcat(&pers_p->username,
s_fcrea_str((const unsigned char *)")")) != OK )
s_fcrea_str(")")) != OK )
restart_kom("login: s_strcat )\n");
}
if ( s_strcat(&pers_p->username,
s_fcrea_str((const unsigned char *)"@")) != OK )
if ( s_strcat(&pers_p->username, s_fcrea_str("@")) != OK )
restart_kom("prot_a_parse_packet: s_strcat\n");
if ( s_strcat(&pers_p->username, active_connection->hostname) != OK )
......
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