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
e3647e49
...
e3647e496e747f9975a9c361a4528f862563871e
authored
2002-03-25 09:51:25 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Renamed program-specific profiles to ~/.mu.<program>rc.
1 parent
fc5d3073
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
lib/mu_argp.c
lib/mu_argp.c
View file @
e3647e4
...
...
@@ -536,13 +536,15 @@ mu_create_argcv (const char *capa[],
/* Add per-program (and per-user) config file. */
{
char
*
progrc
=
malloc
(
strlen
(
progname
)
+
3
/* ~/ */
+
3
/* rc */
+
1
);
char
*
progrc
=
malloc
(
strlen
(
progname
)
+
6
/* ~/.mu. */
+
3
/* rc */
+
1
);
if
(
!
progrc
)
{
fprintf
(
stderr
,
"%s: not enough memory
\n
"
,
progname
);
exit
(
1
);
}
sprintf
(
progrc
,
"~/.%src"
,
progname
);
sprintf
(
progrc
,
"~/.
mu.
%src"
,
progname
);
read_rc
(
NULL
,
progrc
,
capa
,
&
x_argc
,
&
x_argv
);
free
(
progrc
);
}
...
...
@@ -589,7 +591,7 @@ mu_build_argp (const struct argp *template, const char *capa[])
/* Count the capabilities */
for
(
n
=
0
;
capa
&&
capa
[
n
];
n
++
)
;
if
(
template
&&
template
->
children
)
if
(
template
->
children
)
for
(;
template
->
children
[
n
].
argp
;
n
++
)
;
...
...
@@ -601,7 +603,7 @@ mu_build_argp (const struct argp *template, const char *capa[])
}
n
=
0
;
if
(
template
&&
template
->
children
)
if
(
template
->
children
)
for
(;
template
->
children
[
n
].
argp
;
n
++
)
ap
[
n
]
=
template
->
children
[
n
];
...
...
Please
register
or
sign in
to post a comment