[ctld] Fix compilation under gcc-6.4

* remove dup yylex symbol; already defined in a header file
* uint64_t is always >= 0

Reviewed by:	cem, imp
Differential Revision:	https://reviews.freebsd.org/D27046
This commit is contained in:
Adrian Chadd 2020-11-01 21:18:21 +00:00
parent 758dde0614
commit e72a100b79

View File

@ -54,7 +54,6 @@ static struct target *target = NULL;
static struct lun *lun = NULL;
extern void yyerror(const char *);
extern int yylex(void);
extern void yyrestart(FILE *);
%}
@ -522,7 +521,7 @@ portal_group_pcp: PCP STR
free($2);
return (1);
}
if (!((tmp >= 0) && (tmp <= 7))) {
if (tmp > 7) {
yyerror("invalid pcp value");
free($2);
return (1);