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
49430380
...
49430380d129d535bb4c0c90c5c5703562c369a6
authored
2005-02-03 10:56:26 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(parse_opt): Use arg instead of optarg. Thanks James Dolter for reporting.
1 parent
0b1eac86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
guimb/main.c
guimb/main.c
View file @
4943038
...
...
@@ -79,23 +79,23 @@ parse_opt (int key, char *arg, struct argp_state *state)
switch
(
key
)
{
case
'c'
:
program_expr
=
opt
arg
;
program_expr
=
arg
;
*
(
int
*
)
state
->
input
=
state
->
next
;
state
->
next
=
state
->
argc
;
break
;
case
's'
:
program_file
=
opt
arg
;
program_file
=
arg
;
*
(
int
*
)
state
->
input
=
state
->
next
;
state
->
next
=
state
->
argc
;
break
;
case
'f'
:
program_file
=
opt
arg
;
program_file
=
arg
;
break
;
case
'e'
:
program_expr
=
opt
arg
;
program_expr
=
arg
;
break
;
case
'd'
:
...
...
@@ -103,15 +103,15 @@ parse_opt (int key, char *arg, struct argp_state *state)
break
;
case
'g'
:
append_arg
(
opt
arg
);
append_arg
(
arg
);
break
;
case
'M'
:
default_mailbox
=
opt
arg
;
default_mailbox
=
arg
;
break
;
case
'u'
:
user_name
=
optarg
?
opt
arg
:
who_am_i
();
user_name
=
arg
?
arg
:
who_am_i
();
break
;
default:
...
...
Please
register
or
sign in
to post a comment