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
5db2c573
...
5db2c573a0dd277f25b1c05fa4bb952513889f25
authored
2007-11-20 10:52:19 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_logging_param): Use callback to parse thefacility.
1 parent
a13049b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
libcfg/common.c
libcfg/common.c
View file @
5db2c57
...
...
@@ -89,8 +89,20 @@ DCL_CFG_CAPA (mailer);
/* Logging */
/* ************************************************************************* */
int
cb_facility
(
mu_cfg_locus_t
*
locus
,
void
*
data
,
char
*
arg
)
{
if
(
mu_string_to_syslog_facility
(
arg
,
&
logging_settings
.
facility
))
{
mu_error
(
_
(
"%s:%d: Unknown syslog facility `%s'"
),
locus
->
file
,
locus
->
line
,
arg
);
return
1
;
}
return
0
;
}
static
struct
mu_cfg_param
mu_logging_param
[]
=
{
{
"facility"
,
mu_cfg_
string
,
&
logging_settings
.
facility
},
{
"facility"
,
mu_cfg_
callback
,
NULL
,
cb_
facility
},
{
NULL
}
};
...
...
Please
register
or
sign in
to post a comment