artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e613f9f
)
Shut up a gcc warning about uninitialized use of min & max by adding a default
author
claudio
<claudio@openbsd.org>
Sun, 9 Sep 2018 15:04:36 +0000
(15:04 +0000)
committer
claudio
<claudio@openbsd.org>
Sun, 9 Sep 2018 15:04:36 +0000
(15:04 +0000)
case in the switch statement. Found by denis@ and fix proposed by sthen@
usr.sbin/bgpd/parse.y
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpd/parse.y
b/usr.sbin/bgpd/parse.y
index
5b22217
..
fae82a2
100644
(file)
--- a/
usr.sbin/bgpd/parse.y
+++ b/
usr.sbin/bgpd/parse.y
@@
-1,4
+1,4
@@
-/* $OpenBSD: parse.y,v 1.34
7 2018/09/09 14:27:24
claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.34
8 2018/09/09 15:04:36
claudio Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@
-2202,6
+2202,9
@@
prefixlenop : /* empty */ { bzero(&$$, sizeof($$)); }
min = $3;
max = -1;
break;
+ default:
+ yyerror("unknown prefixlen operation");
+ YYERROR;
}
$$.len_min = min;
$$.len_max = max;