MFC r362569 (by jkim):
Fix build with recent byacc. S3curity:
This commit is contained in:
parent
e288a5ef9f
commit
8ecdea2458
@ -72,6 +72,8 @@ __FBSDID("$FreeBSD$");
|
||||
#include "extern.h"
|
||||
#include "pathnames.h"
|
||||
|
||||
#define yylex ftpcmd_yylex
|
||||
|
||||
off_t restart_point;
|
||||
|
||||
static int cmd_type;
|
||||
|
@ -257,7 +257,9 @@ main(int argc, char **argv)
|
||||
init_numeric();
|
||||
init_time();
|
||||
|
||||
#if YYDEBUG
|
||||
yydebug = 0;
|
||||
#endif
|
||||
|
||||
(void) setlocale(LC_ALL, "");
|
||||
|
||||
|
@ -47,7 +47,9 @@ extern int mb_cur_max;
|
||||
extern int mb_cur_min;
|
||||
extern int last_kw;
|
||||
extern int verbose;
|
||||
#if YYDEBUG
|
||||
extern int yydebug;
|
||||
#endif
|
||||
extern int lineno;
|
||||
extern int undefok; /* mostly ignore undefined symbols */
|
||||
extern int warnok;
|
||||
|
@ -139,7 +139,7 @@ statement:
|
||||
debug_statement:
|
||||
DEBUG_CMD flag EOS
|
||||
{
|
||||
#ifdef YYDEBUG
|
||||
#if YYDEBUG
|
||||
yydebug = $2;
|
||||
#endif /* YYDEBUG */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user