Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
09ca4f37
...
09ca4f3798a728722bf1b1d64f1900715d8f0010
authored
2003-01-22 13:12:47 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use comparator function for list deletions.
1 parent
ef1b49af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
imap4d/capability.c
imap4d/capability.c
View file @
09ca4f3
...
...
@@ -19,11 +19,20 @@
static
list_t
capa_list
;
static
int
comp
(
const
void
*
item
,
const
void
*
data
)
{
return
strcmp
((
char
*
)
item
,
(
char
*
)
data
);
}
void
imap4d_capability_add
(
const
char
*
str
)
{
if
(
!
capa_list
)
{
list_create
(
&
capa_list
);
list_set_comparator
(
capa_list
,
comp
);
}
list_append
(
capa_list
,
(
void
*
)
str
);
}
...
...
@@ -58,8 +67,6 @@ print_capa (void *item, void *data)
int
imap4d_capability
(
struct
imap4d_command
*
command
,
char
*
arg
)
{
int
i
;
(
void
)
arg
;
util_send
(
"* CAPABILITY"
);
...
...
Please
register
or
sign in
to post a comment