summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorVladimir Volovich <vvv@vsu.ru>2008-07-13 01:21:34 +0000
committerVladimir Volovich <vvv@vsu.ru>2008-07-13 01:21:34 +0000
commit8a352960fb9b050f846d1497f562bfc5352b5115 (patch)
treef29dd5b9d5ff0db76ba7b22aab5ff60e575043e0 /Build
parent26b4d4c9a2612ef8661a4a008d932d190e4ec74a (diff)
portability fix - avoid variable declaration after statement
git-svn-id: svn://tug.org/texlive/trunk@9498 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/xdvik/events.c2
-rw-r--r--Build/source/texk/xdvik/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/xdvik/events.c b/Build/source/texk/xdvik/events.c
index 77776de5699..1a5024953cd 100644
--- a/Build/source/texk/xdvik/events.c
+++ b/Build/source/texk/xdvik/events.c
@@ -2362,9 +2362,9 @@ Act_mouse_modes(Widget w, XEvent *event,
my_action = compile_action(params[mode_idx]);
for (i = 0, ap = my_action; ap; ap = ap->next, i++) {
+ String args[1];
TRACE_EVENTS((stderr, "Action %d for mode %d: '%s', %d args |%s| maps to proc |%p|",
i, mode_idx, ap->command, ap->num_params, ap->param, ap->proc));
- String args[1];
args[0] = ap->param;
/* now call the action proc directly */
diff --git a/Build/source/texk/xdvik/util.c b/Build/source/texk/xdvik/util.c
index eb891cc76f6..adf6c3cd839 100644
--- a/Build/source/texk/xdvik/util.c
+++ b/Build/source/texk/xdvik/util.c
@@ -150,11 +150,11 @@ xdvi_assert(const char *version,
const char *fmt, ...)
{
if (!(condition)) {
+ va_list argp;
fprintf(stderr,
"\n************************************************************\n"
"XDvi %s: Failed assertion:\n%s:%d: ",
version, filename, lineno);
- va_list argp;
va_start(argp, fmt);
(void)vfprintf(stderr, fmt, argp);
va_end(argp);