From d460892bbfece74fb6d3cd846bf6ef548290be41 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 8 May 2020 21:40:53 +0200 Subject: New upstream version 1.24.0 --- libnm/meson.build | 2 +- libnm/nm-client.c | 6 +++--- libnm/nm-libnm-utils.h | 3 ++- libnm/nm-property-docs.xml | 12 ++++++------ libnm/nm-settings-docs.xml | 12 ++++++------ libnm/tests/test-libnm.c | 2 +- 6 files changed, 19 insertions(+), 18 deletions(-) (limited to 'libnm') diff --git a/libnm/meson.build b/libnm/meson.build index 98d39f8e..406766c7 100644 --- a/libnm/meson.build +++ b/libnm/meson.build @@ -255,7 +255,7 @@ if enable_introspection ld_library_path = meson.current_build_dir() + ld_library_path generate_setting_docs_env = [ - 'env', '-i', + 'env', 'GI_TYPELIB_PATH=' + gi_typelib_path, 'LD_LIBRARY_PATH=' + ld_library_path, ] diff --git a/libnm/nm-client.c b/libnm/nm-client.c index 68a1836d..ed8b69ca 100644 --- a/libnm/nm-client.c +++ b/libnm/nm-client.c @@ -5214,7 +5214,7 @@ nm_client_add_and_activate_connection_finish (NMClient *client, * @specific_object: (allow-none): the object path of a connection-type-specific * object this activation should use. This parameter is currently ignored for * wired and mobile broadband connections, and the value of %NULL should be used - * (ie, no specific object). For Wi-Fi or WiMAX connections, pass the object + * (i.e., no specific object). For Wi-Fi or WiMAX connections, pass the object * path of a #NMAccessPoint or #NMWimaxNsp owned by @device, which you can * get using nm_object_get_path(), and which will be used to complete the * details of the newly added connection. @@ -5234,7 +5234,7 @@ nm_client_add_and_activate_connection_finish (NMClient *client, * #NMActiveConnection object (in particular, #NMActiveConnection:state) to * track the activation to its completion. * - * This is identitcal to nm_client_add_and_activate_connection_async() but takes + * This is identical to nm_client_add_and_activate_connection_async() but takes * a further @options parameter. Currently the following options are supported * by the daemon: * * "persist": A string describing how the connection should be stored. @@ -5243,7 +5243,7 @@ nm_client_add_and_activate_connection_finish (NMClient *client, * * "bind-activation": Bind the connection lifetime to something. The default is "none", * meaning an explicit disconnect is needed. The value "dbus-client" * means the connection will automatically be deactivated when the calling - * DBus client disappears from the system bus. + * D-Bus client disappears from the system bus. * * Since: 1.16 **/ diff --git a/libnm/nm-libnm-utils.h b/libnm/nm-libnm-utils.h index 64ce81ad..b59ba5f0 100644 --- a/libnm/nm-libnm-utils.h +++ b/libnm/nm-libnm-utils.h @@ -671,7 +671,8 @@ NML_IS_DBUS_OBJECT (NMLDBusObject *dbobj) nm_assert ( !dbobj || ( NM_IS_REF_STRING (dbobj->dbus_path) && dbobj->ref_count > 0)); - nm_assert ( !dbobj->nmobj + nm_assert ( !dbobj + || !dbobj->nmobj || NM_IS_OBJECT (dbobj->nmobj) || NM_IS_CLIENT (dbobj->nmobj)); return !!dbobj; diff --git a/libnm/nm-property-docs.xml b/libnm/nm-property-docs.xml index eb280215..a74cd22b 100644 --- a/libnm/nm-property-docs.xml +++ b/libnm/nm-property-docs.xml @@ -187,10 +187,10 @@ - + - + @@ -211,10 +211,10 @@ - + - + @@ -441,11 +441,11 @@ - + - + diff --git a/libnm/nm-settings-docs.xml b/libnm/nm-settings-docs.xml index 9a139a16..df9ef110 100644 --- a/libnm/nm-settings-docs.xml +++ b/libnm/nm-settings-docs.xml @@ -190,10 +190,10 @@ - + - + @@ -216,10 +216,10 @@ - + - + @@ -450,11 +450,11 @@ - + - + diff --git a/libnm/tests/test-libnm.c b/libnm/tests/test-libnm.c index 90d0cf0d..d437c82c 100644 --- a/libnm/tests/test-libnm.c +++ b/libnm/tests/test-libnm.c @@ -3103,7 +3103,7 @@ test_nm_auth_permissions (void) g_assert (s == nm_auth_permission_names_by_idx[i - 1]); g_assert_cmpint (nm_auth_permission_from_string (s), ==, i); } - return; + for (i = 0; i < NM_CLIENT_PERMISSION_LAST; i++) g_assert_cmpint (nm_auth_permission_from_string (nm_auth_permission_names_by_idx[i]), ==, i + 1); } -- cgit 1.3.0-6-gf8a5