Hello,
trivial attached patch fixes following warning:
../src/tests/sysdb-tests.c: In function ‘test_sysdb_attrs_add_lc_name_alias’:
../src/tests/sysdb-tests.c:4716:72: error: passing argument 4 of ‘sysdb_attrs_get_string_array’ from incompatible pointer type [-Werror=incompatible-pointer-types]
ret = sysdb_attrs_get_string_array(attrs, SYSDB_NAME_ALIAS, attrs, &list);
^
In file included from ../src/db/sysdb_private.h:87:0,
from ../src/tests/sysdb-tests.c:32:
../src/db/sysdb.h:347:5: note: expected ‘const char ***’ but argument is of type ‘char ***’
int sysdb_attrs_get_string_array(struct sysdb_attrs *attrs, const char *name,
^
../src/tests/sysdb-tests.c: In function ‘test_sysdb_attrs_add_lc_name_alias_safe’:
../src/tests/sysdb-tests.c:4759:72: error: passing argument 4 of ‘sysdb_attrs_get_string_array’ from incompatible pointer type [-Werror=incompatible-pointer-types]
ret = sysdb_attrs_get_string_array(attrs, SYSDB_NAME_ALIAS, attrs, &list);
^
In file included from ../src/db/sysdb_private.h:87:0,
from ../src/tests/sysdb-tests.c:32:
../src/db/sysdb.h:347:5: note: expected ‘const char ***’ but argument is of type ‘char ***’
int sysdb_attrs_get_string_array(struct sysdb_attrs *attrs, const char *name,
^
../src/tests/sysdb-tests.c:4773:72: error: passing argument 4 of ‘sysdb_attrs_get_string_array’ from incompatible pointer type [-Werror=incompatible-pointer-types]
ret = sysdb_attrs_get_string_array(attrs, SYSDB_NAME_ALIAS, attrs, &list);
^
In file included from ../src/db/sysdb_private.h:87:0,
from ../src/tests/sysdb-tests.c:32:
../src/db/sysdb.h:347:5: note: expected ‘const char ***’ but argument is of type ‘char ***’
int sysdb_attrs_get_string_array(struct sysdb_attrs *attrs, const char *name,
Thanks!