• spiiroin's avatar
    [dyn-config] Fix miscellaneous issues · 1c90322a
    spiiroin authored
    String fields in modedata_t structures are filled in via functions that
    return 'gchar *' pointers - adjust structure data types and release
    function accordingly.
    
    The modelist_free() function uses g_list_foreach() iterator and a
    callback function that is not appropriate for the action, and then uses
    a cast to hide any compiler warnings - get rid of the cast by using
    g_list_free_full() iterator and a suitable callback function.
    
    The modelist_load() function looks complex and indiscriminately loads
    all files from dynamic mode configuration directory. If there are for
    example editor backup files present, this can lead to hard to detect
    issues - simplify the logic and use glob pattern expansion to derive
    list of files to load.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    1c90322a
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.depend Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.custom Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config-static.h Loading commit data...
configure.ac Loading commit data...
depend_filter.py Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...