svn commit: r367257 - head/usr.sbin/ctld
Adrian Chadd
adrian at FreeBSD.org
Sun Nov 1 21:18:22 UTC 2020
Author: adrian
Date: Sun Nov 1 21:18:21 2020
New Revision: 367257
URL: https://svnweb.freebsd.org/changeset/base/367257
Log:
[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
Modified:
head/usr.sbin/ctld/parse.y
Modified: head/usr.sbin/ctld/parse.y
==============================================================================
--- head/usr.sbin/ctld/parse.y Sun Nov 1 20:54:02 2020 (r367256)
+++ head/usr.sbin/ctld/parse.y Sun Nov 1 21:18:21 2020 (r367257)
@@ -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);
More information about the svn-src-head
mailing list