Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lyskom-server-ceder-1616-generations-topgit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
03423aeb
Commit
03423aeb
authored
Jun 26, 1999
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(create_oldstyle_username): Remove needless casts.
(login_old): Likewise. (login): Likewise.
parent
ff1b8b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
src/server/session.c
src/server/session.c
+9
-14
No files found.
src/server/session.c
View file @
03423aeb
/*
* $Id: session.c,v 0.5
2 1999/06/05 12:19:08 byers
Exp $
* $Id: session.c,v 0.5
3 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.5
2 1999/06/05 12:19:08 byers
Exp $"
;
rcsid
=
"$Id: session.c,v 0.5
3 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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