mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 23:20:22 +01:00
dhcp: prefer nm_assert() to g_assert*()
This commit is contained in:
parent
89814d90aa
commit
ee20761ea8
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue