summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc/mkpar.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2017-05-25 20:11:03 +0000
committertedu <tedu@openbsd.org>2017-05-25 20:11:03 +0000
commit54b0094572f868f4366bdde48e755818f20e59cc (patch)
tree91d335205fdfd5a1a3e01c4d9065b0b7be869dc0 /usr.bin/yacc/mkpar.c
parentAdd definitions for three OIDs used in EV certificates. (diff)
downloadwireguard-openbsd-54b0094572f868f4366bdde48e755818f20e59cc.tar.xz
wireguard-openbsd-54b0094572f868f4366bdde48e755818f20e59cc.zip
fix a variety of warnings. from Brian Callahan
Diffstat (limited to 'usr.bin/yacc/mkpar.c')
-rw-r--r--usr.bin/yacc/mkpar.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/yacc/mkpar.c b/usr.bin/yacc/mkpar.c
index 9b2373d9561..14f2dbf3d0d 100644
--- a/usr.bin/yacc/mkpar.c
+++ b/usr.bin/yacc/mkpar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkpar.c,v 1.18 2014/03/13 00:59:34 tedu Exp $ */
+/* $OpenBSD: mkpar.c,v 1.19 2017/05/25 20:11:03 tedu Exp $ */
/* $NetBSD: mkpar.c,v 1.4 1996/03/19 03:21:39 jtc Exp $ */
/*
@@ -49,10 +49,10 @@ short final_state;
static int SRcount;
static int RRcount;
-extern action *parse_actions();
-extern action *get_shifts();
-extern action *add_reductions();
-extern action *add_reduce();
+extern action *parse_actions(int);
+extern action *get_shifts(int);
+extern action *add_reductions(int, action *);
+extern action *add_reduce(action *, int, int);
short sole_reduction(int);
void free_action_row(action *);
@@ -98,16 +98,16 @@ get_shifts(int stateno)
{
action *actions, *temp;
shifts *sp;
- short *to_state;
+ short *tto_state;
int i, k;
int symbol;
actions = 0;
sp = shift_table[stateno];
if (sp) {
- to_state = sp->shift;
+ tto_state = sp->shift;
for (i = sp->nshifts - 1; i >= 0; i--) {
- k = to_state[i];
+ k = tto_state[i];
symbol = accessing_symbol[k];
if (ISTOKEN(symbol)) {
temp = NEW(action);
@@ -187,14 +187,14 @@ void
find_final_state(void)
{
int goal, i;
- short *to_state;
+ short *tto_state;
shifts *p;
p = shift_table[0];
- to_state = p->shift;
+ tto_state = p->shift;
goal = ritem[1];
for (i = p->nshifts - 1; i >= 0; --i) {
- final_state = to_state[i];
+ final_state = tto_state[i];
if (accessing_symbol[final_state] == goal)
break;
}