Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
03423aeb
Commit
03423aeb
authored
Jun 26, 1999
by
Per Cederqvist
Browse files
(create_oldstyle_username): Remove needless casts.
(login_old): Likewise. (login): Likewise.
parent
ff1b8b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/session.c
View file @
03423aeb
/*
* $Id: session.c,v 0.5
2
1999/06/
05 12:19:08 by
er
s
Exp $
* $Id: session.c,v 0.5
3
1999/06/
26 15:49:20 ced
er 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.5
2
1999/06/
05 12:19:08 by
er
s
Exp $"
;
rcsid
=
"$Id: session.c,v 0.5
3
1999/06/
26 15:49:20 ced
er 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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment