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
b8babbf1
Commit
b8babbf1
authored
Apr 04, 1992
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trivial bugfixes.
parent
fdc5a5bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
24 deletions
+25
-24
src/server/prot-a-output.h
src/server/prot-a-output.h
+6
-5
src/server/prot-a.c
src/server/prot-a.c
+4
-4
src/server/session.c
src/server/session.c
+15
-15
No files found.
src/server/prot-a-output.h
View file @
b8babbf1
/*
* $Id: prot-a-output.h,v 0.
5 1992/04/01 20:50:46
ceder Exp $
* $Id: prot-a-output.h,v 0.
6 1992/04/04 17:30:55
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: prot-a-output.h,v 0.
5 1992/04/01 20:50:46
ceder Exp $
* $Id: prot-a-output.h,v 0.
6 1992/04/04 17:30:55
ceder Exp $
*
*/
extern
void
...
...
@@ -67,7 +67,7 @@ extern void
prot_a_output_info
(
Connection
*
fp
,
Info
*
info
);
extern
void
void
prot_a_output_who_info
(
Connection
*
fp
,
Who_info
*
info
);
...
...
@@ -77,7 +77,8 @@ prot_a_output_who_info_list(Connection *fp,
extern
void
prot_a_output_who_info_ident_list
(
Connection
*
fp
,
Who_info_ident_list
info
)
Who_info_ident_list
info
);
extern
void
prot_a_output_who_info_list_old
(
Connection
*
fp
,
Who_info_list_old
info
);
...
...
@@ -88,7 +89,7 @@ prot_a_output_session_info(Connection *fp,
void
prot_a_output_session_info_ident
(
Connection
*
fp
,
Session_info
*
info
);
Session_info
_ident
*
info
);
extern
void
prot_a_output_string
(
Connection
*
fp
,
...
...
src/server/prot-a.c
View file @
b8babbf1
/*
* $Id: prot-a.c,v 0.1
3 1992/04/01 20:50:49
ceder Exp $
* $Id: prot-a.c,v 0.1
4 1992/04/04 17:32:55
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.1
3 1992/04/01 20:50:49
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: prot-a.c,v 0.1
4 1992/04/04 17:32:55
ceder Exp $"
;
#include <stdio.h>
...
...
@@ -136,7 +136,7 @@ prot_a_reply(Connection *client,
/* Clear username, since it is allocated (in get_session_info()
in session.c). See comment abover the definition of
typedef Result_holder in connections.h. */
s_clear
(
&
res
->
session_info
->
username
);
s_clear
(
&
res
->
session_info
.
username
);
BUG
((
"={Session_info not listed}
\n
"
));
break
;
...
...
@@ -178,7 +178,7 @@ prot_a_reply(Connection *client,
case
rt_session_info_ident
:
prot_a_output_session_info_ident
(
client
,
&
res
->
session_info
);
&
res
->
session_info
_ident
);
BUG
((
"={Session_info_ident not listed}
\n
"
));
break
;
}
...
...
src/server/session.c
View file @
b8babbf1
/*
* $Id: session.c,v 0.
6 1992/04/01 20:47
:46 ceder Exp $
* $Id: session.c,v 0.
7 1992/04/04 17:33
:46 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* Session control and miscellaneous.
*/
static
char
*
rcsid
=
"$Id: session.c,v 0.
6 1992/04/01 20:47
:46 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: session.c,v 0.
7 1992/04/04 17:33
:46 ceder Exp $"
;
#include <time.h>
...
...
@@ -121,23 +121,23 @@ login_old (Pers_no pers_no,
if
(
!
s_empty
(
active_connection
->
ident_user
))
{
if
(
s_strcat
(
&
client
->
username
,
if
(
s_strcat
(
&
pers_p
->
username
,
s_fcrea_str
((
const
unsigned
char
*
)
"("
))
!=
OK
)
restart_kom
(
"login: s_strcat (
\n
"
);
if
(
s_strcat
(
&
client
->
username
,
active_connection
->
ident_user
)
!=
OK
)
if
(
s_strcat
(
&
pers_p
->
username
,
active_connection
->
ident_user
)
!=
OK
)
restart_kom
(
"login: s_strcat ident_user
\n
"
);
if
(
s_strcat
(
&
client
->
username
,
if
(
s_strcat
(
&
pers_p
->
username
,
s_fcrea_str
((
const
unsigned
char
*
)
")"
))
!=
OK
)
restart_kom
(
"login: s_strcat )
\n
"
);
}
if
(
s_strcat
(
&
client
->
username
,
if
(
s_strcat
(
&
pers_p
->
username
,
s_fcrea_str
((
const
unsigned
char
*
)
"@"
))
!=
OK
)
restart_kom
(
"prot_a_parse_packet: s_strcat
\n
"
);
if
(
s_strcat
(
&
client
->
username
,
client
->
hostname
)
!=
OK
)
if
(
s_strcat
(
&
pers_p
->
username
,
active_connection
->
hostname
)
!=
OK
)
restart_kom
(
"prot_a_parse_packet: s_strcat II
\n
"
);
mark_person_as_changed
(
pers_no
);
...
...
@@ -195,23 +195,23 @@ login (Pers_no pers_no,
if
(
!
s_empty
(
active_connection
->
ident_user
))
{
if
(
s_strcat
(
&
client
->
username
,
if
(
s_strcat
(
&
pers_p
->
username
,
s_fcrea_str
((
const
unsigned
char
*
)
"("
))
!=
OK
)
restart_kom
(
"login: s_strcat (
\n
"
);
if
(
s_strcat
(
&
client
->
username
,
active_connection
->
ident_user
)
!=
OK
)
if
(
s_strcat
(
&
pers_p
->
username
,
active_connection
->
ident_user
)
!=
OK
)
restart_kom
(
"login: s_strcat ident_user
\n
"
);
if
(
s_strcat
(
&
client
->
username
,
if
(
s_strcat
(
&
pers_p
->
username
,
s_fcrea_str
((
const
unsigned
char
*
)
")"
))
!=
OK
)
restart_kom
(
"login: s_strcat )
\n
"
);
}
if
(
s_strcat
(
&
client
->
username
,
if
(
s_strcat
(
&
pers_p
->
username
,
s_fcrea_str
((
const
unsigned
char
*
)
"@"
))
!=
OK
)
restart_kom
(
"prot_a_parse_packet: s_strcat
\n
"
);
if
(
s_strcat
(
&
client
->
username
,
client
->
hostname
)
!=
OK
)
if
(
s_strcat
(
&
pers_p
->
username
,
active_connection
->
hostname
)
!=
OK
)
restart_kom
(
"prot_a_parse_packet: s_strcat II
\n
"
);
mark_person_as_changed
(
pers_no
);
...
...
@@ -445,7 +445,7 @@ who_is_on_ident( Who_info_ident_list *result )
if
(
cptr
->
person
!=
NULL
)
{
result
->
info
[
i
]
=
EMPTY_WHO_INFO
;
result
->
info
[
i
]
=
EMPTY_WHO_INFO
_IDENT
;
result
->
info
[
i
].
person
=
cptr
->
pers_no
;
result
->
info
[
i
].
what_am_i_doing
=
cptr
->
what_am_i_doing
;
result
->
info
[
i
].
username
=
cptr
->
username
;
...
...
@@ -495,7 +495,7 @@ get_session_info (Session_no session_no,
s_fcrea_str
((
const
unsigned
char
*
)
"@"
))
!=
OK
)
restart_kom
(
"get_session_info: s_strcat
\n
"
);
if
(
s_strcat
(
&
result
->
username
,
c
lient
->
hostname
)
!=
OK
)
if
(
s_strcat
(
&
result
->
username
,
c
ptr
->
hostname
)
!=
OK
)
restart_kom
(
"get_session_infot: s_strcat II
\n
"
);
return
OK
;
...
...
@@ -519,7 +519,7 @@ get_session_info_ident (Session_no session_no,
if
(
cptr
!=
NULL
)
{
*
result
=
EMPTY_SESSION_INFO
;
*
result
=
EMPTY_SESSION_INFO
_IDENT
;
result
->
person
=
cptr
->
pers_no
;
result
->
what_am_i_doing
=
cptr
->
what_am_i_doing
;
result
->
working_conference
=
cptr
->
cwc
;
...
...
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