Description: follow type change
 SBGString -> GString.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Last-Update: 2017-07-15

---

--- syslog-ng-incubator-0.5.0.orig/modules/lua/lua-dest.c
+++ syslog-ng-incubator-0.5.0/modules/lua/lua-dest.c
@@ -142,7 +142,7 @@ lua_dd_queue(LogThrDestDriver *d, LogMes
 {
   LuaDestDriver *self = (LuaDestDriver *) d;
   LogPathOptions path_options = LOG_PATH_OPTIONS_INIT;
-  SBGString *str = sb_gstring_acquire();
+  GString *str = sb_gstring_acquire();
   gboolean success;
   int number_of_parameters = 1;
 
@@ -150,8 +150,8 @@ lua_dd_queue(LogThrDestDriver *d, LogMes
 
   if (self->mode == LUA_DEST_MODE_FORMATTED)
     {
-      log_template_format(self->template, msg, NULL, 0, 0, NULL, sb_gstring_string(str));
-      lua_pushlstring(self->state, sb_gstring_string(str)->str, sb_gstring_string(str)->len);
+      log_template_format(self->template, msg, NULL, 0, 0, NULL, str);
+      lua_pushlstring(self->state, str->str, str->len);
     }
 
   if (self->mode == LUA_DEST_MODE_RAW)
--- syslog-ng-incubator-0.5.0.orig/modules/lua/lua-template.c
+++ syslog-ng-incubator-0.5.0/modules/lua/lua-template.c
@@ -71,13 +71,13 @@ lua_template_format(lua_State *state)
 {
   LogTemplate *template;
   LogMessage *msg;
-  SBGString *str = sb_gstring_acquire();
+  GString *str = sb_gstring_acquire();
 
   template = (LogTemplate *) lua_check_and_convert_userdata(state, -2, LUA_TEMPLATE_TYPE);
   msg = (LogMessage *) lua_check_and_convert_userdata(state, -1, LUA_MESSAGE_TYPE);
 
-  log_template_format(template, msg, NULL, 0, 0, NULL, sb_gstring_string(str));
-  lua_pushlstring(state, sb_gstring_string(str)->str, sb_gstring_string(str)->len);
+  log_template_format(template, msg, NULL, 0, 0, NULL, str);
+  lua_pushlstring(state, str->str, str->len);
 
   sb_gstring_release(str);
   return 1;
