Module: kamailio
Branch: master
Commit: 9f326234f40f2c02f4833647112c3a4f4912aa17
URL:
https://github.com/kamailio/kamailio/commit/9f326234f40f2c02f4833647112c3a4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-09T12:57:57+01:00
core: cfg.lex - overwrite yy_fatal_error() to use ksr_exit() macro
---
Modified: src/core/cfg.lex
---
Diff:
https://github.com/kamailio/kamailio/commit/9f326234f40f2c02f4833647112c3a4…
Patch:
https://github.com/kamailio/kamailio/commit/9f326234f40f2c02f4833647112c3a4…
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex
index 90d6f685a7..196ac408a8 100644
--- a/src/core/cfg.lex
+++ b/src/core/cfg.lex
@@ -42,6 +42,9 @@
#include "daemonize.h"
#include "ppcfg.h"
+ static void yynoreturn ksr_yy_fatal_error(const char* msg);
+ #define YY_FATAL_ERROR(msg) ksr_yy_fatal_error(msg);
+
/* states */
#define INITIAL_S 0
#define COMMENT_S 1
@@ -2164,3 +2167,8 @@ static void pp_endif()
pp_update_state();
}
+static void yynoreturn ksr_yy_fatal_error(const char* msg)
+{
+ fprintf( stderr, "%s\n", msg );
+ ksr_exit( YY_EXIT_FAILURE );
+}