aboutsummaryrefslogtreecommitdiff
path: root/gcc/ch/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ch/parse.c')
-rw-r--r--gcc/ch/parse.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/ch/parse.c b/gcc/ch/parse.c
index 36913ce..e3593df 100644
--- a/gcc/ch/parse.c
+++ b/gcc/ch/parse.c
@@ -332,11 +332,7 @@ require(token)
enum terminal token;
{
if (PEEK_TOKEN() != token)
- {
- char buf[80];
- sprintf (buf, "internal parser error - expected token %d", (int)token);
- fatal(buf);
- }
+ fatal ("internal parser error - expected token %d", (int)token);
FORWARD_TOKEN();
}
@@ -361,7 +357,7 @@ expect(token, message)
if (PEEK_TOKEN() != token)
{
if (pass == 1)
- error(message ? message : "syntax error");
+ error("%s", message ? message : "syntax error");
return 0;
}
else