Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
b8babbf1
Commit
b8babbf1
authored
33 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Trivial bugfixes.
parent
fdc5a5bc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/server/prot-a-output.h
+6
-5
6 additions, 5 deletions
src/server/prot-a-output.h
src/server/prot-a.c
+4
-4
4 additions, 4 deletions
src/server/prot-a.c
src/server/session.c
+15
-15
15 additions, 15 deletions
src/server/session.c
with
25 additions
and
24 deletions
src/server/prot-a-output.h
+
6
−
5
View file @
b8babbf1
/*
* $Id: prot-a-output.h,v 0.
5
1992/04/0
1 20:50:46
ceder Exp $
* $Id: prot-a-output.h,v 0.
6
1992/04/0
4 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/0
1 20:50:46
ceder Exp $
* $Id: prot-a-output.h,v 0.
6
1992/04/0
4 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
,
...
...
This diff is collapsed.
Click to expand it.
src/server/prot-a.c
+
4
−
4
View file @
b8babbf1
/*
* $Id: prot-a.c,v 0.1
3
1992/04/0
1 20:50:49
ceder Exp $
* $Id: prot-a.c,v 0.1
4
1992/04/0
4 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/0
1 20:50:49
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: prot-a.c,v 0.1
4
1992/04/0
4 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
;
}
...
...
This diff is collapsed.
Click to expand it.
src/server/session.c
+
15
−
15
View file @
b8babbf1
/*
* $Id: session.c,v 0.
6
1992/04/0
1 20:47
:46 ceder Exp $
* $Id: session.c,v 0.
7
1992/04/0
4 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/0
1 20:47
:46 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: session.c,v 0.
7
1992/04/0
4 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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment