summaryrefslogtreecommitdiff
path: root/comsat
diff options
context:
space:
mode:
authorSam Roberts <sroberts@uniserve.com>2002-02-21 01:25:43 +0000
committerSam Roberts <sroberts@uniserve.com>2002-02-21 01:25:43 +0000
commit407f42472b53d5452c780e0a39b6975c4d841fec (patch)
tree9a55e6e0451b667dce74f1c5b20602d46ecdf300 /comsat
parentde82eae68b917d574ad60a0046f5a2810d4352e6 (diff)
downloadmailutils-407f42472b53d5452c780e0a39b6975c4d841fec.tar.gz
mailutils-407f42472b53d5452c780e0a39b6975c4d841fec.tar.bz2
argcv_get() now (optionally) strips comments while parsing. Its the right
place because it tokenizes, and whether a char is a comment or not depends on whether its in the middle of a token or not: "hi # there" # comment.
Diffstat (limited to 'comsat')
-rw-r--r--comsat/action.c2
-rw-r--r--comsat/cfg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/comsat/action.c b/comsat/action.c
index ca729d4ee..6abbda31b 100644
--- a/comsat/action.c
+++ b/comsat/action.c
@@ -367,7 +367,7 @@ run_user_action (FILE *tty, const char *cr, message_t msg)
str = expand_line (stmt, msg);
if (!str)
continue;
- if (argcv_get (str, "", &argc, &argv)
+ if (argcv_get (str, "", NULL, &argc, &argv)
|| argc == 0
|| argv[0][0] == '#')
{
diff --git a/comsat/cfg.c b/comsat/cfg.c
index a05535877..f322d7fc6 100644
--- a/comsat/cfg.c
+++ b/comsat/cfg.c
@@ -161,7 +161,7 @@ read_config (const char *config_file)
if (!*ptr || *ptr == '#')
continue;
- argcv_get (ptr, "", &argc, &argv);
+ argcv_get (ptr, "", NULL, &argc, &argv);
if (argc < 2)
{
syslog (LOG_ERR, "%s:%d: too few fields", config_file, line);

Return to:

Send suggestions and report system problems to the System administrator.