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
1e1300f3
Commit
1e1300f3
authored
Jul 08, 1998
by
Per Cederqvist
Browse files
(rcsid): Added a missing const.
(logv): Renamed local variable names to avoid warnings from gcc. (log): Likewise.
parent
664f85a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/log.c
View file @
1e1300f3
/*
* $Id: log.c,v 0.1
5
199
5/11/02 21:48:44
ceder Exp $
* $Id: log.c,v 0.1
6
199
8/07/08 16:29:29
ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,8 @@
* File created by ceder 1990-05-25.
*/
static
char
*
rcsid
=
"$Id: log.c,v 0.15 1995/11/02 21:48:44 ceder Exp $"
;
static
const
char
*
rcsid
=
"$Id: log.c,v 0.16 1998/07/08 16:29:29 ceder Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -61,11 +62,11 @@ log (const char * format, ...)
extern
void
logv
(
const
char
*
format
,
va_list
AP
)
{
time_t
cl
oc
k
;
time_t
clk
;
struct
tm
*
t
;
time
(
&
cl
oc
k
);
t
=
localtime
(
&
cl
oc
k
);
time
(
&
clk
);
t
=
localtime
(
&
clk
);
fprintf
(
stderr
,
"%02d%02d%02d %02d:%02d:%02d %ld "
,
t
->
tm_year
,
t
->
tm_mon
+
1
,
t
->
tm_mday
,
...
...
@@ -79,11 +80,11 @@ extern void
log
(
const
char
*
format
,
int
a
,
int
b
,
int
c
,
int
d
,
int
e
,
int
f
,
int
g
)
{
time_t
cl
oc
k
;
time_t
clk
;
struct
tm
*
t
;
time
(
&
cl
oc
k
);
t
=
localtime
(
&
cl
oc
k
);
time
(
&
clk
);
t
=
localtime
(
&
clk
);
fprintf
(
stderr
,
"%02d%02d%02d %02d:%02d:%02d %ld "
,
t
->
tm_year
,
t
->
tm_mon
+
1
,
t
->
tm_mday
,
...
...
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