Date: Thu, 5 Aug 2010 19:08:54 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/hastd hast.h hastd.c parse.y Message-ID: <201008051909.o75J9AJU036741@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2010-08-05 19:08:54 UTC
FreeBSD src repository
Modified files:
sbin/hastd hast.h hastd.c parse.y
Log:
SVN rev 210883 on 2010-08-05 19:08:54Z by pjd
Prepare configuration parsing code to be called multiple times:
- Don't exit on errors if not requested.
- Don't keep configuration in global variable, but allocate memory for
configuration.
- Call yyrestart() before yyparse() so that on error in configuration file
we will start from the begining next time and not from the place we left of.
MFC after: 1 month
Revision Changes Path
1.3 +1 -1 src/sbin/hastd/hast.h
1.10 +1 -1 src/sbin/hastd/hastd.c
1.3 +110 -57 src/sbin/hastd/parse.y
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008051909.o75J9AJU036741>
