diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-16 13:09:28 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-16 13:09:28 +0200 |
commit | b0f10ec7274144b4e048953b11f2a4d98e055810 (patch) | |
tree | 4bcc06122d183582d0b53fe2b8ba4c87b289b96f /src/directive.c | |
parent | 169a680208f2de8f92b4a2a4977953d4452e981f (diff) | |
download | wydawca-b0f10ec7274144b4e048953b11f2a4d98e055810.tar.gz wydawca-b0f10ec7274144b4e048953b11f2a4d98e055810.tar.bz2 |
Improve argument parsing
* src/cmdline.opt, src/getopt.m4: New files.
* src/wydawca.c: Switch to new way of command line parsing.
* src/wydawca.h (gettext): Define.
* bootstrap.conf: Add formatting flags for gconf_warning and gconf_error
* gconf-preproc.c (pp_list_find): Minor change.
* gconf/gconf.h (gconf_warning,gconf_error): Mark as printflike.
* src/.gitignore: Add cmdline.h
* src/Makefile.am (wydawca_SOURCES): Add cmdline.h.
(.opt.h): New rule.
* src/config.c (cb_archive): Archive is now a block statement (unless type
"none" is declared).
(all functions): Tighten input checking
* src/update-2.0.awk: Reflect the above change.
* src/directive.c (process_directives): Minor change.
* src/diskio.c (symlink_file): Minor change.
Diffstat (limited to 'src/directive.c')
-rw-r--r-- | src/directive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directive.c b/src/directive.c index eeb82c1..ed28cc5 100644 --- a/src/directive.c +++ b/src/directive.c @@ -363,7 +363,7 @@ process_directives (struct file_triplet *trp, struct directory_pair *dpair) char **argv; int rc = 0; - if (rc = argcv_get (val, NULL, NULL, &argc, &argv)) + if ((rc = argcv_get (val, NULL, NULL, &argc, &argv))) { logmsg (LOG_ERR, "cannot parse symlink value `%s': %s", val, strerror (rc)); |