History log of /sssd/src/util/sss_utf8.c
Revision Date Author Comments Expand
c101cb130df0705a9227dadce22554307eee54db 25-Nov-2016 Lukas Slebodnik <lukas.slebodnik@intrak.sk>

UTIL: Fix compilation of sss_utf8 with libunistring The internal header file "util/util.h" was removed from sss_utf8.h as part of commit de5fa34860886ad68fba5e739987e16c342e8f14. It was neccessary to ensure libipa_hbac can be build with C90 compatible compiler. This header file includes many system header file and after this change caused missing declaration of the function free() src/util/sss_utf8.c: In function ‘sss_utf8_free’: src/util/sss_utf8.c:40:12: error: implicit declaration of function ‘free’ [-Werror=implicit-function-declaration] return free(ptr); ^~~~ src/util/sss_utf8.c:40:12: warning: incompatible implicit declaration of built-in function ‘free’ src/util/sss_utf8.c:40:12: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’ cc1: some warnings being treated as errors Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

de5fa34860886ad68fba5e739987e16c342e8f14 12-Mar-2016 Lukas Slebodnik <lslebodn@redhat.com>

libipa_hbac: Ensure we always build with C90 libipa_hbac is also used by external projects such as pam_hbac: https://github.com/jhrozek/pam_hbac In order to make sure we don't use C99 features in the libipa_hbac code in the future, this patch adds an explicit -std=c89 flag to CFLAGS. Signed-off-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

fa0938a6e3cb928602633c3da0b909deb269369d 14-Mar-2014 Lukas Slebodnik <lslebodn@redhat.com>

Use pattern #elif defined(identifier) We had in source code following pattern #elif HAVE_<name> It worked because undefined identifier(in some cases) was evaluated to 0. But we do not care about value of HAVE_SOMETHING. We just need to know whether identifier was defined. There is not equivalent to #ifdef (short for of #if definded) We need to use long form: #elif defined HAVE_<name> It causes also compiler warning with enabled compiler flag -Wundef. Reviewed-by: Pavel Reichl <preichl@redhat.com>

2bdadc5274df42738b97045cd01cd63d3651daf9 14-Mar-2014 Lukas Slebodnik <lslebodn@redhat.com>

UTIL: Hide implementation details about unicode libraries. Header files from glib or unistring are only necessary in implementation module sss_utf8.c Reviewed-by: Pavel Reichl <preichl@redhat.com>

2b4332767d299263a288e0a74bbfbc9de674de95 21-Mar-2012 Jakub Hrozek <jhrozek@redhat.com>

Make the string_equal() function public

dbea04f585a30d001b574317c068cd03a4fa332b 16-Dec-2011 Jakub Hrozek <jhrozek@redhat.com>

sss_utf8_tolower utility function+unit tests

b32159300fea63222d8dd9200ed634087704ea74 05-Dec-2011 Stephen Gallagher <sgallagh@redhat.com>

Allow using Glib for UTF8 support