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
e8ac3e5d
...
e8ac3e5d8ba74a49507a68b22c43f6295832a69c
authored
2006-01-20 16:30:24 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(util_printenv): Change return type to void. All callers updated.
1 parent
c96e032e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
mail/mail.h
mail/set.c
mail/unset.c
mail/util.c
mail/mail.h
View file @
e8ac3e5
...
...
@@ -332,7 +332,7 @@ extern struct mail_env_entry *util_find_env (const char *var, int create);
extern
int
util_getenv
(
void
*
ptr
,
const
char
*
variable
,
mail_env_data_t
type
,
int
warn
);
extern
int
util_printenv
(
int
set
);
extern
void
util_printenv
(
int
set
);
extern
int
util_setenv
(
const
char
*
name
,
void
*
value
,
mail_env_data_t
type
,
int
overwrite
);
extern
int
util_isdeleted
(
size_t
msgno
);
...
...
mail/set.c
View file @
e8ac3e5
...
...
@@ -31,7 +31,8 @@ mail_set (int argc, char **argv)
{
if
(
argc
<
2
)
{
return
util_printenv
(
1
);
util_printenv
(
1
);
return
0
;
}
else
{
...
...
mail/unset.c
View file @
e8ac3e5
...
...
@@ -26,7 +26,10 @@ int
mail_unset
(
int
argc
,
char
**
argv
)
{
if
(
argc
<
2
)
return
util_printenv
(
0
);
{
util_printenv
(
0
);
return
0
;
}
else
{
int
status
=
0
,
i
=
1
;
...
...
mail/util.c
View file @
e8ac3e5
...
...
@@ -589,7 +589,7 @@ envp_comp (const void *a, const void *b)
return
strcmp
((
*
epa
)
->
var
,
(
*
epb
)
->
var
);
}
int
void
util_printenv
(
int
set
)
{
struct
mail_env_entry
**
ep
;
...
...
Please
register
or
sign in
to post a comment