webmcp

changeset 561:e13a3fa97aad

Removed unused pointer for database connection to avoid compiler warning
author jbe
date Fri Feb 05 15:37:48 2021 +0100 (2021-02-05)
parents 75204c64cc5f
children 328f120924a2
files libraries/mondelefant/mondelefant_native.c
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_native.c	Tue Jun 09 13:27:58 2020 +0200
     1.2 +++ b/libraries/mondelefant/mondelefant_native.c	Fri Feb 05 15:37:48 2021 +0100
     1.3 @@ -694,13 +694,12 @@
     1.4  
     1.5  // method "assemble_command" of database handles:
     1.6  static int mondelefant_conn_assemble_command(lua_State *L) {
     1.7 -  mondelefant_conn_t *conn;
     1.8    int paramidx = 2;
     1.9    const char *template;
    1.10    size_t template_pos = 0;
    1.11    luaL_Buffer buf;
    1.12    // get database connection object:
    1.13 -  conn = mondelefant_get_conn(L, 1);
    1.14 +  mondelefant_get_conn(L, 1);
    1.15    // if second argument is a string, return this string:
    1.16    if (lua_type(L, 2) == LUA_TSTRING) {
    1.17      lua_settop(L, 2);

Impressum / About Us