Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Jaak Ristioja
OpenLDAP
Commits
5dd9d650
Commit
5dd9d650
authored
26 years ago
by
Hallvard Furuseth
Browse files
Options
Downloads
Patches
Plain Diff
Silence some warnings of unused variables and comparing signed with unsigned
parent
727fae81
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/saucer/main.c
+3
-5
3 additions, 5 deletions
contrib/saucer/main.c
with
3 additions
and
5 deletions
contrib/saucer/main.c
+
3
−
5
View file @
5dd9d650
...
...
@@ -83,7 +83,7 @@ int do_command(char *cmd);
void
do_commands
(
FILE
*
file
);
int
is_whitespace
(
register
char
*
s
);
char
*
make_dn
(
char
*
dn
,
int
relative
);
void
show_syntax
(
int
cmdnum
);
void
show_syntax
(
unsigned
int
cmdnum
);
char
*
skip_to_char
(
register
char
*
s
,
register
int
c
);
char
*
skip_to_whitespace
(
register
char
*
s
);
char
*
skip_whitespace
(
register
char
*
s
);
...
...
@@ -122,7 +122,7 @@ int bind_user(void)
int
cmd_help
(
char
**
cmdargv
,
int
cmdargc
)
{
int
i
;
unsigned
int
i
;
if
(
cmdargc
==
2
)
{
for
(
i
=
0
;
i
<
sizeof
(
cmdtable
)
/
sizeof
(
cmdtable
[
0
]);
i
++
)
...
...
@@ -394,7 +394,6 @@ int cmd_set(char **cmdargv, int cmdargc)
int
cmd_show
(
char
**
cmdargv
,
int
cmdargc
)
{
char
*
dn
=
NULL
;
LDAPMessage
*
entry
;
int
errflag
=
0
;
int
i
;
static
const
char
*
const
opts
[]
=
{
"absolute"
};
...
...
@@ -662,7 +661,6 @@ int main(int argc, char **argv)
char
*
make_dn
(
char
*
dn
,
int
relative
)
{
static
char
dn_buf
[
DN_MAXLEN
];
char
*
s
;
if
(
!
dn
)
dn
=
""
;
...
...
@@ -676,7 +674,7 @@ char *make_dn(char *dn, int relative)
return
strcat
(
strcat
(
strcpy
(
dn_buf
,
dn
),
", "
),
default_dn
);
}
void
show_syntax
(
int
cmdnum
)
void
show_syntax
(
unsigned
int
cmdnum
)
{
printf
(
"Syntax: %s %s
\n
"
,
cmdtable
[
cmdnum
].
cmd
,
cmdtable
[
cmdnum
].
help_msg
);
}
...
...
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