Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
4a5e2feb
Commit
4a5e2feb
authored
Sep 04, 1999
by
Hallvard Furuseth
Browse files
Some constification & lint removal
parent
203f5b05
Changes
5
Hide whitespace changes
Inline
Side-by-side
include/ldap_schema.h
View file @
4a5e2feb
...
...
@@ -161,7 +161,7 @@ ldap_matchingrule2str LDAP_P((
LDAP_F
(
char
*
)
ldap_scherr2str
LDAP_P
((
int
code
));
int
code
))
LDAP_GCCATTR
((
const
))
;
LDAP_END_DECL
...
...
libraries/libldap/schema.c
View file @
4a5e2feb
...
...
@@ -1834,7 +1834,7 @@ ldap_str2objectclass( const char * s, int * code, const char ** errp )
}
}
static
char
*
err2text
[]
=
{
static
char
*
const
err2text
[]
=
{
""
,
"Out of memory"
,
"Unexpected token"
,
...
...
servers/slapd/connection.c
View file @
4a5e2feb
...
...
@@ -35,7 +35,9 @@ static unsigned long conn_nextid = 0;
#define SLAP_C_BINDING 0x03
/* binding */
#define SLAP_C_CLOSING 0x04
/* closing */
char
*
connection_state2str
(
int
state
)
{
const
char
*
connection_state2str
(
int
state
)
{
switch
(
state
)
{
case
SLAP_C_INVALID
:
return
"!"
;
case
SLAP_C_INACTIVE
:
return
"|"
;
...
...
servers/slapd/proto-slap.h
View file @
4a5e2feb
...
...
@@ -189,7 +189,7 @@ long connection_init LDAP_P((
void
connection_closing
LDAP_P
((
Connection
*
c
));
int
connection_state_closing
LDAP_P
((
Connection
*
c
));
char
*
connection_state2str
LDAP_P
((
int
state
));
const
char
*
connection_state2str
LDAP_P
((
int
state
))
LDAP_GCCATTR
((
const
))
;
int
connection_write
LDAP_P
((
ber_socket_t
s
));
int
connection_read
LDAP_P
((
ber_socket_t
s
));
...
...
@@ -387,7 +387,7 @@ void parse_oc_old LDAP_P(( Backend *be, const char *fname, int lineno, int argc,
void
parse_oc
LDAP_P
((
const
char
*
fname
,
int
lineno
,
char
*
line
,
char
**
argv
));
void
parse_at
LDAP_P
((
const
char
*
fname
,
int
lineno
,
char
*
line
,
char
**
argv
));
void
parse_oidm
LDAP_P
((
const
char
*
fname
,
int
lineno
,
int
argc
,
char
**
argv
));
char
*
scherr2str
LDAP_P
((
int
code
));
char
*
scherr2str
LDAP_P
((
int
code
))
LDAP_GCCATTR
((
const
))
;
int
dscompare
LDAP_P
((
const
char
*
s1
,
const
char
*
s2del
,
char
delim
));
/*
* str2filter.c
...
...
servers/slapd/schemaparse.c
View file @
4a5e2feb
...
...
@@ -15,15 +15,13 @@
#include
"slap.h"
#include
"ldap_schema.h"
static
Avlnode
*
object_classes
=
NULL
;
int
global_schemacheck
=
1
;
/* schemacheck on is default */
static
void
oc_usage_old
(
void
)
LDAP_GCCATTR
((
noreturn
));
static
void
oc_usage
(
void
)
LDAP_GCCATTR
((
noreturn
));
static
void
at_usage
(
void
)
LDAP_GCCATTR
((
noreturn
));
static
char
*
err2text
[]
=
{
static
char
*
const
err2text
[]
=
{
""
,
"Out of memory"
,
"Objectclass not found"
,
...
...
Write
Preview
Supports
Markdown
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