dhcp: prefer nm_assert() to g_assert*()

This commit is contained in:
Francesco Giudici 2019-08-23 18:25:23 +02:00
parent 89814d90aa
commit ee20761ea8
3 changed files with 3 additions and 3 deletions

View file

@ -686,7 +686,7 @@ nm_dhcp_client_stop (NMDhcpClient *self, gboolean release)
_LOGI ("canceled DHCP transaction, DHCP client pid %d", old_pid);
else
_LOGI ("canceled DHCP transaction");
g_assert (priv->pid == -1);
nm_assert (priv->pid == -1);
nm_dhcp_client_set_state (self, NM_DHCP_STATE_DONE, NULL, NULL);
}

View file

@ -128,7 +128,7 @@ add_ip4_config (GString *str, GBytes *client_id, const char *hostname, gboolean
guint i;
p = g_bytes_get_data (client_id, &l);
g_assert (p);
nm_assert (p);
/* Allow type 0 (non-hardware address) to be represented as a string
* as long as all the characters are printable.

View file

@ -213,7 +213,7 @@ merge_dhclient_config (NMDhcpDhclient *self,
orig_path,
orig,
out_new_client_id);
g_assert (new);
nm_assert (new);
return g_file_set_contents (conf_file,
new,