Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
9f92954d
Commit
9f92954d
authored
Oct 21, 1998
by
Kurt Zeilenga
Browse files
ifdef Y2K -> ifndef LOCALTIME
parent
845e0073
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/add.c
View file @
9f92954d
...
...
@@ -184,7 +184,7 @@ add_created_attrs( Operation *op, Entry *e )
attr_merge
(
e
,
"creatorsname"
,
bvals
);
pthread_mutex_lock
(
&
currenttime_mutex
);
#ifdef LDAP_
Y2K
#if
n
def LDAP_
LOCALTIME
ltm
=
gmtime
(
&
currenttime
);
strftime
(
buf
,
sizeof
(
buf
),
"%Y%m%d%H%M%SZ"
,
ltm
);
#else
...
...
servers/slapd/modify.c
View file @
9f92954d
...
...
@@ -251,7 +251,7 @@ add_lastmods( Operation *op, LDAPMod **mods )
*
mods
=
tmp
;
pthread_mutex_lock
(
&
currenttime_mutex
);
#ifdef LDAP_
Y2K
#if
n
def LDAP_
LOCALTIME
ltm
=
gmtime
(
&
currenttime
);
strftime
(
buf
,
sizeof
(
buf
),
"%Y%m%d%H%M%SZ"
,
ltm
);
#else
...
...
servers/slapd/monitor.c
View file @
9f92954d
...
...
@@ -93,7 +93,7 @@ monitor_info( Connection *conn, Operation *op )
nreadwaiters
++
;
}
pthread_mutex_lock
(
&
currenttime_mutex
);
#ifdef LDAP_
Y2K
#if
n
def LDAP_
LOCALTIME
ltm
=
gmtime
(
&
c
[
i
].
c_starttime
);
strftime
(
buf2
,
sizeof
(
buf2
),
"%Y%m%d%H%M%SZ"
,
ltm
);
#else
...
...
@@ -162,7 +162,7 @@ monitor_info( Connection *conn, Operation *op )
attr_merge
(
e
,
"bytessent"
,
vals
);
pthread_mutex_lock
(
&
currenttime_mutex
);
#ifdef LDAP_
Y2K
#if
n
def LDAP_
LOCALTIME
ltm
=
gmtime
(
&
currenttime
);
strftime
(
buf
,
sizeof
(
buf
),
"%Y%m%d%H%M%SZ"
,
ltm
);
#else
...
...
@@ -175,7 +175,7 @@ monitor_info( Connection *conn, Operation *op )
attr_merge
(
e
,
"currenttime"
,
vals
);
pthread_mutex_lock
(
&
currenttime_mutex
);
#ifdef LDAP_
Y2K
#if
n
def LDAP_
LOCALTIME
ltm
=
gmtime
(
&
starttime
);
strftime
(
buf
,
sizeof
(
buf
),
"%Y%m%d%H%M%SZ"
,
ltm
);
#else
...
...
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