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
2e496442
...
2e496442356de1b25f4c929980ef9ef311ceb533
authored
2002-09-17 15:07:36 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mh_argp_parse): Updated declaration.
1 parent
480b4f66
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
18 deletions
mh/inc.c
mh/mh_getopt.h
mh/scan.c
mh/inc.c
View file @
2e49644
...
...
@@ -147,7 +147,7 @@ main (int argc, char **argv)
mh_format_t
format
;
mh_argp_parse
(
argc
,
argv
,
options
,
mh_option
,
args_doc
,
doc
,
opt_handler
,
NULL
);
opt_handler
,
NULL
,
NULL
);
if
(
!
quiet
&&
mh_format_parse
(
format_str
,
&
format
))
{
...
...
mh/mh_getopt.h
View file @
2e49644
...
...
@@ -20,6 +20,6 @@ int mh_argp_parse (int argc, char **argv,
struct
argp_option
*
option
,
struct
mh_option
*
mh_option
,
char
*
argp_doc
,
char
*
doc
,
int
(
*
handler
)(),
void
*
closure
);
int
(
*
handler
)(),
void
*
closure
,
int
*
index
);
void
mh_help
(
struct
mh_option
*
mh_option
);
void
mh_license
(
const
char
*
name
);
...
...
mh/scan.c
View file @
2e49644
...
...
@@ -128,10 +128,8 @@ opt_handler (int key, char *arg, void *unused)
int
main
(
int
argc
,
char
**
argv
)
{
mailbox_t
mbox
=
NULL
;
mh_argp_parse
(
argc
,
argv
,
options
,
mh_option
,
args_doc
,
doc
,
opt_handler
,
NULL
);
opt_handler
,
NULL
,
NULL
);
if
(
mh_format_parse
(
format_str
,
&
format
))
{
...
...
@@ -139,19 +137,7 @@ main (int argc, char **argv)
exit
(
1
);
}
if
(
mailbox_create_default
(
&
mbox
,
current_folder
))
{
mh_error
(
"Can't create mailbox %s: %s"
,
current_folder
,
strerror
(
errno
));
exit
(
1
);
}
if
(
mailbox_open
(
mbox
,
MU_STREAM_READ
))
{
mh_error
(
"Can't open mailbox %s: %s"
,
current_folder
,
strerror
(
errno
));
exit
(
1
);
}
return
scan
(
mbox
);
return
scan
(
mh_open_folder
());
}
#ifdef HAVE_TERMCAP_H
...
...
Please
register
or
sign in
to post a comment