liquid_feedback_frontend

changeset 1634:96336212e94d

Fixed mldap for Lua 5.3
author bsw
date Mon Feb 08 15:45:10 2021 +0100 (2021-02-08)
parents 35e605322b41
children bbb537ba81b2
files lib/mldap/Makefile lib/mldap/mldap.c
line diff
     1.1 --- a/lib/mldap/Makefile	Mon Feb 08 15:44:21 2021 +0100
     1.2 +++ b/lib/mldap/Makefile	Mon Feb 08 15:45:10 2021 +0100
     1.3 @@ -2,7 +2,7 @@
     1.4  	ld -shared -L/usr/lib -o mldap.so mldap.o /usr/lib/libldap.so
     1.5  
     1.6  mldap.o: mldap.c
     1.7 -	gcc -g -c -fPIC -I/usr/include -I/usr/include/lua5.1 -Wall -o mldap.o mldap.c
     1.8 +	gcc -g -c -fPIC -I/usr/include -I/usr/include/lua5.3 -Wall -o mldap.o mldap.c
     1.9  
    1.10  clean::
    1.11  	rm -f mldap.so mldap.o
     2.1 --- a/lib/mldap/mldap.c	Mon Feb 08 15:44:21 2021 +0100
     2.2 +++ b/lib/mldap/mldap.c	Mon Feb 08 15:45:10 2021 +0100
     2.3 @@ -340,7 +340,7 @@
     2.4    lua_pop(L, 1);  // removes stack element 4
     2.5    filter = mldap_get_named_string_arg(L, 2, "filter", false);  // pushed to 4
     2.6    lua_getfield(L, 2, "attrs");  // pushed to 5
     2.7 -  nattrs = lua_len(L, -1);
     2.8 +  nattrs = luaL_len(L, -1);
     2.9    attrs = calloc(nattrs + 1, sizeof(char *));  // memory allocation, +1 for terminating NULL
    2.10    if (!attrs) return luaL_error(L, "Memory allocation error in C function 'mldap_queryconn'");
    2.11    for (attr_idx=0; attr_idx<nattrs; attr_idx++) {

Impressum / About Us