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
f28f0c19
...
f28f0c19f8312dfc85c700cb946c3aa6fb82c17f
authored
2005-11-12 11:32:50 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add typecasts
1 parent
be61f27a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
mail/util.c
mailbox/registrar.c
mail/util.c
View file @
f28f0c1
...
...
@@ -582,8 +582,8 @@ var_iterate_end (var_iterator_t *itr)
static
int
envp_comp
(
const
void
*
a
,
const
void
*
b
)
{
const
struct
mail_env_entry
*
*
epa
=
a
;
const
struct
mail_env_entry
*
*
epb
=
b
;
struct
mail_env_entry
*
const
*
epa
=
a
;
struct
mail_env_entry
*
const
*
epb
=
b
;
return
strcmp
((
*
epa
)
->
var
,
(
*
epb
)
->
var
);
}
...
...
@@ -596,7 +596,7 @@ util_printenv (int set)
mu_list_count
(
environment
,
&
count
);
ep
=
xcalloc
(
count
,
sizeof
*
ep
);
mu_list_to_array
(
environment
,
ep
,
count
,
NULL
);
mu_list_to_array
(
environment
,
(
void
**
)
ep
,
count
,
NULL
);
qsort
(
ep
,
count
,
sizeof
*
ep
,
envp_comp
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
...
...
mailbox/registrar.c
View file @
f28f0c1
...
...
@@ -113,8 +113,8 @@ mu_registrar_lookup (const char *name, mu_record_t *precord, int flags)
static
int
_compare_prio
(
const
void
*
item
,
const
void
*
value
)
{
const
mu_record_t
a
=
item
;
const
mu_record_t
b
=
value
;
const
mu_record_t
a
=
(
const
mu_record_t
)
item
;
const
mu_record_t
b
=
(
const
mu_record_t
)
value
;
if
(
a
->
priority
>
b
->
priority
)
return
0
;
return
-
1
;
...
...
Please
register
or
sign in
to post a comment