aboutsummaryrefslogtreecommitdiff
path: root/src/cmdline.opt
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-24 14:45:19 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-24 14:45:19 +0200
commitb1472caae9a1b6905b6bbe42e69539b29febcf5c (patch)
tree3aaf7a2b4b95ecbdeceefcb8d649c4cb726e84fa /src/cmdline.opt
parentf7834b6f1aa00b7173a2fe338756c2bad4e3927b (diff)
downloadwydawca-b1472caae9a1b6905b6bbe42e69539b29febcf5c.tar.gz
wydawca-b1472caae9a1b6905b6bbe42e69539b29febcf5c.tar.bz2
Improve daemon mode.
* gconf/gconf-gram.y: Provide created lists with appropriate equal tests. Special handling for lists of strings. * src/cmdline.opt: Minor fix. * src/config.c: New keyword all-spools. * src/job.c: Hanlde "all spools" requests. * src/net.c: Likewise. * src/process.c (spool_check_alias): Rewrite using gl_list_search (scan_directories): Rename to scan_all_spools. (spool_create_timers): New function. * src/wydawca.c (all_spool_aliases): New global. (initstats): New function. * src/wydawca.h: Add new declarations.
Diffstat (limited to 'src/cmdline.opt')
-rw-r--r--src/cmdline.opt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmdline.opt b/src/cmdline.opt
index b61517b..8b45791 100644
--- a/src/cmdline.opt
+++ b/src/cmdline.opt
@@ -21,7 +21,7 @@ static gl_list_t source_list;
static gl_list_t tag_list;
static bool
-source_eq (const void *elt1, const void *elt2)
+string_eq (const void *elt1, const void *elt2)
{
return strcmp ((const char *)elt1, (const char *)elt2) == 0;
}
@@ -99,7 +99,7 @@ OPTION(spool,S,TAG,
BEGIN
if (!tag_list)
tag_list = gl_list_create_empty (&gl_linked_list_implementation,
- source_eq, NULL,
+ string_eq, NULL,
NULL, false);
gl_list_add_last (tag_list, optarg);
END
@@ -109,7 +109,7 @@ OPTION(source,s,SOURCE-DIR,
BEGIN
if (!source_list)
source_list = gl_list_create_empty (&gl_linked_list_implementation,
- source_eq, NULL,
+ string_eq, NULL,
NULL, false);
gl_list_add_last (source_list, optarg);
END

Return to:

Send suggestions and report system problems to the System administrator.