Date: Sun, 1 Nov 2020 21:18:22 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367257 - head/usr.sbin/ctld Message-ID: <202011012118.0A1LIMpE001775@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011012118.0A1LIMpE001775>