summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-08-11 07:29:47 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-08-11 07:29:47 +0000
commitb6eecab8082267852b902db726aca3403dcb789f (patch)
tree1d90eda69561cec94293cb22990a14f1c9691297
parent570af4fe08d77f23427cc17fcfa539ad73cb812c (diff)
downloadmailutils-b6eecab8082267852b902db726aca3403dcb789f.tar.gz
mailutils-b6eecab8082267852b902db726aca3403dcb789f.tar.bz2
Use mail_find_escape()
-rw-r--r--mail/send.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/mail/send.c b/mail/send.c
index 3e3240b2d..b73738f7d 100644
--- a/mail/send.c
+++ b/mail/send.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -380,14 +380,13 @@ mail_send0 (compose_env_t * env, int save_to)
if (argcv_get (buf + 1, "", NULL, &argc, &argv) == 0)
{
- struct mail_command_entry entry;
-
if (argc > 0)
{
- entry = util_find_entry (mail_escape_table, argv[0]);
+ const struct mail_escape_entry *entry =
+ mail_find_escape (argv[0]);
- if (entry.escfunc)
- status = (*entry.escfunc) (argc, argv, env);
+ if (entry)
+ status = (*entry->escfunc) (argc, argv, env);
else
util_error (_("Unknown escape %s"), argv[0]);
}

Return to:

Send suggestions and report system problems to the System administrator.