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
cb130fe1
...
cb130fe109a0e812a836d1847c32b8daaf76e134
authored
2006-05-26 07:24:24 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Remove leftover optind usage. Thanks Jay Sulzberger <jays@panix.com> for reporting.
1 parent
db64efbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
guimb/main.c
guimb/main.c
View file @
cb130fe
...
...
@@ -147,6 +147,7 @@ int
main
(
int
argc
,
char
*
argv
[])
{
int
c
=
argc
;
int
index
;
mu_guimb_param_t
param
;
struct
guimb_data
gd
;
...
...
@@ -155,10 +156,10 @@ main (int argc, char *argv[])
append_arg
(
""
);
mu_argp_init
(
program_version
,
NULL
);
mu_argp_parse
(
&
argp
,
&
argc
,
&
argv
,
0
,
guimb_argp_capa
,
NULL
,
&
c
);
mu_argp_parse
(
&
argp
,
&
argc
,
&
argv
,
0
,
guimb_argp_capa
,
&
index
,
&
c
);
for
(;
c
<
argc
;
c
++
)
append_arg
(
argv
[
c
]);
append_arg
(
argv
[
c
]);
if
(
!
user_name
)
user_name
=
who_am_i
();
...
...
@@ -174,7 +175,7 @@ main (int argc, char *argv[])
/* Register the desired formats. */
mu_register_all_formats
();
if
(
!
argv
[
optind
])
if
(
!
argv
[
index
])
{
if
(
default_mailbox
)
append_arg
(
default_mailbox
);
...
...
@@ -184,12 +185,12 @@ main (int argc, char *argv[])
{
collect_open_mailbox_file
();
if
(
argv
[
optind
])
if
(
argv
[
index
])
{
for
(;
argv
[
optind
];
optind
++
)
for
(;
argv
[
index
];
index
++
)
{
append_arg
(
argv
[
optind
]);
collect_append_file
(
argv
[
optind
]);
append_arg
(
argv
[
index
]);
collect_append_file
(
argv
[
index
]);
}
}
else
...
...
Please
register
or
sign in
to post a comment