aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-12-22 16:04:46 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-12-22 16:04:46 +0200
commitd44a5b0b3818601311c6cde02a5ffe65b1a47554 (patch)
tree44f2f401d7950e23bffb7379e861768ecdf3252f /src/config.c
parent1d9b66b2a9038d9ecc1ddf21194bfb5eb89d8075 (diff)
downloadwydawca-d44a5b0b3818601311c6cde02a5ffe65b1a47554.tar.gz
wydawca-d44a5b0b3818601311c6cde02a5ffe65b1a47554.tar.bz2
Version 2.0release-2.0
* NEWS: Update. * configure.ac: Update. * doc/wydawca.texi: Minor change. * etc/wydawca.rc: Update. * src/config.c (notification_event_str) (notification_target_str): Use ARGMATCH_TO_ARGUMENT. * src/mail.c (get_uploader_email): Avoid segfault on info==NULL.
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index c3b2e22..0c681ac 100644
--- a/src/config.c
+++ b/src/config.c
@@ -165,7 +165,7 @@ ARGMATCH_VERIFY (event_args, event_types);
const char *
notification_event_str (enum notification_event evt)
{
- return event_args[evt];
+ return ARGMATCH_TO_ARGUMENT ((char*)&evt, event_args, event_types);
}
int
@@ -203,7 +203,7 @@ ARGMATCH_VERIFY (target_args, target_types);
const char *
notification_target_str (enum notification_target tgt)
{
- return target_args[tgt];
+ return ARGMATCH_TO_ARGUMENT ((char*)&tgt, target_args, target_types);
}
int

Return to:

Send suggestions and report system problems to the System administrator.