about summary refs log tree commit diff
path: root/src/nm-checkpoint.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2020-05-19 16:38:51 +0200
committerSebastien Bacher <seb128@ubuntu.com>2020-05-19 16:38:51 +0200
commit96642ebde58e1eea692aea6a92d33f45452fa9c0 (patch)
tree106ddfa2180b3997e8965787b5cb122982ebab9d /src/nm-checkpoint.c
parent8f6881ac06714ef99cc470a03e7ac0ce1af49a16 (diff)
parentd460892bbfece74fb6d3cd846bf6ef548290be41 (diff)
Merge branch 'upstream/latest' of https://salsa.debian.org/utopia-team/network-manager into upstream/latestt pu
Diffstat (limited to 'src/nm-checkpoint.c')
-rw-r--r--src/nm-checkpoint.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nm-checkpoint.c b/src/nm-checkpoint.c
index 734a40e1..3a372667 100644
--- a/src/nm-checkpoint.c
+++ b/src/nm-checkpoint.c
@@ -9,7 +9,7 @@
 
 #include "nm-active-connection.h"
 #include "nm-act-request.h"
-#include "nm-auth-subject.h"
+#include "nm-libnm-core-intern/nm-auth-subject.h"
 #include "nm-core-utils.h"
 #include "nm-dbus-interface.h"
 #include "devices/nm-device.h"
@@ -585,7 +585,7 @@ nm_checkpoint_adjust_rollback_timeout (NMCheckpoint *self, guint32 add_timeout)
 	if (add_timeout == 0)
 		rollback_timeout_s = 0;
 	else {
-		now_ms = nm_utils_get_monotonic_timestamp_ms ();
+		now_ms = nm_utils_get_monotonic_timestamp_msec ();
 		add_timeout_ms = ((gint64) add_timeout) * 1000;
 		rollback_timeout_ms = (now_ms - priv->created_at_ms) + add_timeout_ms;
 
@@ -626,7 +626,7 @@ get_property (GObject *object, guint prop_id,
 	case PROP_CREATED:
 		g_value_set_int64 (value,
 		                   nm_utils_monotonic_timestamp_as_boottime (priv->created_at_ms,
-		                                                             NM_UTILS_NS_PER_MSEC));
+		                                                             NM_UTILS_NSEC_PER_MSEC));
 		break;
 	case PROP_ROLLBACK_TIMEOUT:
 		g_value_set_uint (value, priv->rollback_timeout_s);
@@ -679,7 +679,7 @@ nm_checkpoint_new (NMManager *manager, GPtrArray *devices, guint32 rollback_time
 	priv = NM_CHECKPOINT_GET_PRIVATE (self);
 	priv->manager = g_object_ref (manager);
 	priv->rollback_timeout_s = rollback_timeout_s;
-	priv->created_at_ms = nm_utils_get_monotonic_timestamp_ms ();
+	priv->created_at_ms = nm_utils_get_monotonic_timestamp_msec ();
 	priv->flags = flags;
 
 	if (rollback_timeout_s != 0) {
@@ -723,8 +723,8 @@ dispose (GObject *object)
 
 	nm_assert (c_list_is_empty (&self->checkpoints_lst));
 
-	g_clear_pointer (&priv->devices, g_hash_table_unref);
-	g_clear_pointer (&priv->connection_uuids, g_hash_table_unref);
+	nm_clear_pointer (&priv->devices, g_hash_table_unref);
+	nm_clear_pointer (&priv->connection_uuids, g_hash_table_unref);
 	nm_clear_pointer (&priv->removed_devices, g_ptr_array_unref);
 
 	nm_clear_g_signal_handler (priv->manager, &priv->dev_removed_id);