NetworkManager/shared
Thomas Haller fbddd27e73 shared: fix type shenanigans for data pointer of nm_memdup_maybe_a()
The type of the "data" pointer may not be compatible with the type of
the "to_free" / output pointer. This is due to constness, and that we
are unable in C to remove constness from a type.

For example,

    {
        const char *const *data = ...;
        gs_free const char **cpy_to_free = NULL;
        const char **cpy;

        cpy = nm_memdup_maybe_a (300, data, NM_PTRARRAY_LEN (data) + 1, &cpy_to_free);
    }

is prefectly valid , but would not have compiled.

It shows that "data" is not of type "*(&cpy_to_free)", but rather
it might be a non-const pointer of the same type.

Fixes: d0e1d0e626 ('shared: propagate types in nm_malloc_maybe_a(), nm_malloc0_maybe_a(), nm_memdup_maybe_a()')
2019-05-16 11:42:16 +02:00
..
c-list shared/c-list: reimport 2019-04-14 17:22:04 +02:00
c-rbtree shared/c-rbtree: reimport 2019-04-14 17:23:01 +02:00
c-siphash shared/c-siphash: reimport 2019-04-14 17:23:25 +02:00
c-stdaux shared: patch c-stdaux.h to not include <stdatomic.h> 2019-04-14 17:17:52 +02:00
n-acd shared/n-acd: reimport 2019-04-14 17:23:50 +02:00
nm-glib-aux shared: fix type shenanigans for data pointer of nm_memdup_maybe_a() 2019-05-16 11:42:16 +02:00
nm-libnm-core-aux dispatcher: look for the scripts in /usr/lib as well 2019-04-29 16:57:07 +02:00
nm-libnm-core-intern shared: build helper "libnm-libnm-core-{intern|aux}.la" library for libnm-core 2019-04-18 18:59:09 +02:00
nm-std-aux shared: move "nm-dbus-compat.h" header to "nm-std-aux/nm-dbus-compat.h" 2019-04-18 18:59:09 +02:00
nm-udev-aux shared: move udev helper to separate directory "shared/nm-udev-aux" 2019-04-18 18:58:28 +02:00
nm-utils shared/tests: add tests for libnm-core-aux 2019-04-25 07:47:37 +02:00
systemd systemd: merge branch systemd into master 2019-05-14 16:09:39 +02:00
meson.build shared: add "shared/nm-glib-aux/nm-dbus-aux.h" 2019-05-12 09:56:36 +02:00
nm-default.h shared: move most of "shared/nm-utils" to "shared/nm-glib-aux" 2019-04-18 18:59:09 +02:00
nm-meta-setting.c shared: embed scheme_type in NMSetting8021xSchemeVtable 2019-05-15 09:49:42 +02:00
nm-meta-setting.h shared: embed scheme_type in NMSetting8021xSchemeVtable 2019-05-15 09:49:42 +02:00
nm-test-libnm-utils.h all: goodbye libnm-glib 2019-04-16 15:52:27 +02:00
nm-test-utils-impl.c shared: move "nm-dbus-compat.h" header to "nm-std-aux/nm-dbus-compat.h" 2019-04-18 18:59:09 +02:00
nm-version-macros.h.in release: bump version to 1.19.0 (development) 2019-04-13 18:54:31 +02:00