summaryrefslogtreecommitdiffstats
path: root/syslog.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-08-24 22:06:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-08-24 22:06:13 -0700
commit8d78717508e7f49a9af456197369d74352122b91 (patch)
treec99303cdb7a3678ae97e32c84ff7c842de54b886 /syslog.c
parentba3809f1be41bec92385b3e023269145dde4e5b2 (diff)
downloadtxr-8d78717508e7f49a9af456197369d74352122b91.tar.gz
txr-8d78717508e7f49a9af456197369d74352122b91.tar.bz2
txr-8d78717508e7f49a9af456197369d74352122b91.zip
Replace two-step initialization of args with macros.
* args.h (args_init_list, args_init): Return the struct args * pointer. (args_decl_list, args_decl): New macros. * eval.c (apply, do_eval, expand_macro, op_dwim, op_catch, (mapcarl, lazy_mapcarl): Switch to new macros. * hash.c (hashl): Likewise. * lib.c (generic_funcall, lazy_appendl, maxl, minl, funcall, funcal1, funcall2, funcall3, funcall4, transpose, juxtv, do_and, do_or, do_iff, unique): Likewise. * match.c (h_fun, v_fun): Likewise. * stream.c (vformat): Likewise. * syslog.c (syslog_wrap): Likewise.
Diffstat (limited to 'syslog.c')
-rw-r--r--syslog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/syslog.c b/syslog.c
index 563c0220..8c7b81ef 100644
--- a/syslog.c
+++ b/syslog.c
@@ -122,8 +122,7 @@ val syslog_wrapv(val prio, val fmt, struct args *args)
val syslog_wrap(val prio, val fmt, val arglist)
{
- struct args *args = args_alloc(ARGS_MIN);
- args_init_list(args, ARGS_MIN, arglist);
+ args_decl_list(args, ARGS_MIN, arglist);
return syslog_wrapv(prio, fmt, args);
}