]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Prepare configuration parsing code to be called multiple times:
authorpjd <pjd@FreeBSD.org>
Thu, 5 Aug 2010 19:08:54 +0000 (19:08 +0000)
committerpjd <pjd@FreeBSD.org>
Thu, 5 Aug 2010 19:08:54 +0000 (19:08 +0000)
commit7bbad9d8f8c1a9cc65ce892efef4ccdb734f3576
tree5ad90e1683761e52442eef4afb76287b7b0d11eb
parent31021ec9f13b3e3a013f75bfa436a2c7c4622ef3
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
sbin/hastd/hast.h
sbin/hastd/hastd.c
sbin/hastd/parse.y