liboconfig: Improve error handling.
authorFlorian Forster <octo@collectd.org>
Tue, 5 Dec 2017 15:56:53 +0000 (16:56 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 5 Dec 2017 15:56:53 +0000 (16:56 +0100)
commitc01b130763a1b02d119897d2770f8f323e34daaa
tree0951ffb53802e122ebef56958a323c1b75591ae7
parentc9d3f76a5bd7aaa3d8772e88f8c0292e8b55f66b
liboconfig: Improve error handling.

  * Use the YYERROR macro instead of exit(3).
  * Remove newlines from strings passed to yyerror().
  * Change return valud or yyerror() from int to void.
src/liboconfig/parser.y