aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cc.h2
-rw-r--r--pp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cc.h b/cc.h
index 03ae663..7d85355 100644
--- a/cc.h
+++ b/cc.h
@@ -375,7 +375,7 @@ void ppinit(const char *);
void next(void);
_Bool peek(int);
-char *expect(int, const char *);
+char *expect(enum tokenkind, const char *);
_Bool consume(int);
/* type */
diff --git a/pp.c b/pp.c
index fd3ff6f..9584007 100644
--- a/pp.c
+++ b/pp.c
@@ -123,7 +123,7 @@ peek(int kind)
}
char *
-expect(int kind, const char *msg)
+expect(enum tokenkind kind, const char *msg)
{
char *lit, want[64], got[64];