Commit ab9711d8 authored by ken's avatar ken

[project @ 2002-05-18 05:28:14 by ken]

Add missing va_end's to va_start's.
parent db96caf5
/* -----------------------------------------------------------------------------
* $Id: RtsUtils.c,v 1.24 2002/02/14 16:55:07 sof Exp $
* $Id: RtsUtils.c,v 1.25 2002/05/18 05:28:14 ken Exp $
*
* (c) The GHC Team, 1998-1999
*
......@@ -49,6 +49,7 @@ void barf(char *s, ...)
fprintf(stderr, "\n");
fflush(stderr);
stg_exit(EXIT_INTERNAL_ERROR);
va_end(ap);
}
void prog_belch(char *s, ...)
......@@ -61,6 +62,7 @@ void prog_belch(char *s, ...)
}
vfprintf(stderr, s, ap);
fprintf(stderr, "\n");
va_end(ap);
}
void belch(char *s, ...)
......@@ -70,6 +72,7 @@ void belch(char *s, ...)
/* don't fflush(stdout); WORKAROUND bug in Linux glibc */
vfprintf(stderr, s, ap);
fprintf(stderr, "\n");
va_end(ap);
}
/* result-checking malloc wrappers. */
......
/* ---------------------------------------------------------------------------
* $Id: Schedule.c,v 1.143 2002/05/11 13:58:18 sof Exp $
* $Id: Schedule.c,v 1.144 2002/05/18 05:28:15 ken Exp $
*
* (c) The GHC Team, 1998-2000
*
......@@ -3746,6 +3746,7 @@ sched_belch(char *s, ...)
#endif
vfprintf(stderr, s, ap);
fprintf(stderr, "\n");
va_end(ap);
}
#endif /* DEBUG */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment